/*
Theme Name: Bestattungen Römer v2
Theme URI: https://bestattungen-roemer.de
Author: Andreas Römer
Author URI: https://bestattungen-roemer.de
Description: WordPress-Theme für Bestattungen Römer – Inhalte über ACF pflegbar
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: roemer
*/

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ── DESIGN-TOKENS ── */
:root {
  --cream:        #f5f0eb;
  --warm-white:   #faf8f5;
  --charcoal:     #2a2623;
  --taupe:        #8c7b6e;
  --sage:         #7a8c7e;
  --gold:         #b8956a;
  --gold-light:   #d4b896;
  --border:       rgba(140,123,110,0.2);
  --shadow:       0 4px 40px rgba(42,38,35,0.08);
  --radius:       4px;
  --transition:   0.3s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--warm-white);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
}
.section-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ── LAYOUT ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}
section { padding: 96px 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--warm-white);
}
.btn-primary:hover { background: var(--taupe); }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--charcoal);
  background: rgba(42,38,35,0.04);
}

/* ── HEADER ── */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
}
.header-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-branding a {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--charcoal);
}
.site-title-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.site-title-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 2px;
}

/* ── NAVIGATION ── */
#primary-nav { display: flex; align-items: center; gap: 36px; }
#primary-nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  transition: var(--transition);
}
#primary-nav a:hover { color: var(--charcoal); }
.nav-cta {
  background: var(--charcoal) !important;
  color: var(--warm-white) !important;
  padding: 10px 22px;
  font-size: 0.68rem !important;
  letter-spacing: 0.18em;
}
.nav-cta:hover { background: var(--taupe) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* ── NOTFALL-BANNER ── */
.emergency-bar {
  background: var(--charcoal);
  color: var(--gold-light);
  text-align: center;
  padding: 12px 40px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-top: 72px;
}
.emergency-bar a {
  color: var(--gold);
  font-weight: 500;
  transition: var(--transition);
}
.emergency-bar a:hover { color: var(--gold-light); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  padding: 120px 0 96px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 55%;
  height: 120%;
  background: linear-gradient(135deg, rgba(184,149,106,0.06) 0%, rgba(122,140,126,0.08) 100%);
  transform: skewX(-8deg);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--charcoal);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--taupe);
  line-height: 1.8;
  margin-bottom: 44px;
  font-weight: 300;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--charcoal);
}
.hero-badge-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 2px;
}

/* ── LEISTUNGEN ── */
.leistungen { background: var(--warm-white); }
.section-header {
  max-width: 560px;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 16px;
  color: var(--charcoal);
}
.section-header p {
  color: var(--taupe);
  font-size: 0.95rem;
  line-height: 1.8;
}
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.leistung-card {
  background: var(--cream);
  padding: 44px 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.leistung-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.leistung-card:hover::after { width: 100%; }
.leistung-card:hover { background: #ede8e2; }
.leistung-icon {
  width: 40px; height: 40px;
  margin-bottom: 20px;
  color: var(--gold);
}
.leistung-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.leistung-card p {
  font-size: 0.88rem;
  color: var(--taupe);
  line-height: 1.75;
}

/* ── ÜBER UNS ── */
.ueber-uns { background: var(--cream); }
.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ueber-content h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin-bottom: 24px;
  color: var(--charcoal);
}
.ueber-content > p {
  font-size: 0.95rem;
  color: var(--taupe);
  line-height: 1.9;
  margin-bottom: 40px;
}
.ueber-punkte { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.ueber-punkt {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ueber-punkt-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 10px;
  flex-shrink: 0;
}
.ueber-punkt h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.ueber-punkt p {
  font-size: 0.88rem;
  color: var(--taupe);
  line-height: 1.7;
}
.ueber-zitat {
  background: var(--warm-white);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  margin-top: 8px;
}
.ueber-zitat blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 12px;
}
.ueber-zitat cite {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
  font-style: normal;
}
.ueber-visual {
  position: relative;
}
.ueber-img-wrap {
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--taupe) 0%, var(--charcoal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ueber-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.ueber-img-placeholder {
  color: rgba(255,255,255,0.15);
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  letter-spacing: 0.3em;
  text-align: center;
  line-height: 1;
}
.ueber-jahrzehnte {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--gold);
  padding: 28px 32px;
  text-align: center;
}
.ueber-jahrzehnte-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  color: var(--warm-white);
  line-height: 1;
}
.ueber-jahrzehnte-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.7);
  margin-top: 4px;
}

/* ── VORSORGE ── */
.vorsorge { background: var(--charcoal); color: var(--warm-white); }
.vorsorge .section-label { color: var(--gold-light); }
.vorsorge .section-header h2 { color: var(--warm-white); }
.vorsorge .section-header p { color: rgba(250,248,245,0.6); }
.vorsorge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-bottom: 56px;
}
.vorsorge-punkt {
  background: rgba(255,255,255,0.04);
  padding: 36px 32px;
  border-left: 2px solid rgba(184,149,106,0.3);
  transition: var(--transition);
}
.vorsorge-punkt:hover { background: rgba(255,255,255,0.07); }
.vorsorge-punkt h3 {
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.vorsorge-punkt p {
  font-size: 0.88rem;
  color: rgba(250,248,245,0.6);
  line-height: 1.75;
}
.vorsorge-cta { text-align: center; }
.btn-gold {
  background: var(--gold);
  color: var(--warm-white);
  padding: 16px 40px;
}
.btn-gold:hover { background: var(--gold-light); }

/* ── TRAUERDRUCK ── */
.trauerdruck { background: var(--warm-white); }
.trauerdruck-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.trauerdruck-card {
  background: var(--cream);
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
}
.trauerdruck-card:hover { background: #ede8e2; }
.trauerdruck-icon {
  width: 44px; height: 44px;
  margin: 0 auto 20px;
  color: var(--gold);
}
.trauerdruck-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--charcoal);
}
.trauerdruck-card p {
  font-size: 0.85rem;
  color: var(--taupe);
  line-height: 1.7;
}

/* ── KONTAKT ── */
.kontakt { background: var(--cream); }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.kontakt-info h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin-bottom: 24px;
}
.kontakt-info > p {
  color: var(--taupe);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 40px;
}
.kontakt-details { display: flex; flex-direction: column; gap: 20px; }
.kontakt-item { display: flex; gap: 16px; align-items: flex-start; }
.kontakt-item-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
  font-weight: 500;
}
.kontakt-item-value {
  font-size: 0.95rem;
  color: var(--charcoal);
}
.kontakt-item-value a:hover { color: var(--taupe); }

/* ── FORMULAR ── */
.kontakt-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  color: var(--charcoal);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: #fff;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit { display: flex; justify-content: flex-start; }
.btn-submit {
  background: var(--charcoal);
  color: var(--warm-white);
  padding: 16px 40px;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover { background: var(--taupe); }
.form-notice {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-top: 8px;
}
.form-notice.success { background: rgba(122,140,126,0.12); color: var(--sage); display: block; }
.form-notice.error { background: rgba(180,60,60,0.08); color: #a03030; display: block; }

/* ── FOOTER ── */
#colophon {
  background: var(--charcoal);
  color: rgba(250,248,245,0.5);
  padding: 60px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .site-title-main { color: var(--warm-white); font-size: 1.3rem; }
.footer-brand .site-title-sub { color: rgba(250,248,245,0.4); }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { font-size: 0.88rem; }
.footer-col ul a:hover { color: var(--warm-white); transition: var(--transition); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--warm-white); transition: var(--transition); }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--warm-white);
  z-index: 99;
  padding: 48px 40px;
  flex-direction: column;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }

/* ── SINGLE / STANDARD PAGE ── */
.page-hero {
  padding-top: 72px;
  background: var(--cream);
}
.page-hero-inner {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--charcoal);
}
.page-body {
  padding: 64px 0 96px;
}
.page-body .entry-content {
  max-width: 800px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--taupe);
}
.page-body .entry-content h2,
.page-body .entry-content h3 {
  color: var(--charcoal);
  margin: 40px 0 16px;
}
.page-body .entry-content p { margin-bottom: 20px; }
.page-body .entry-content a { color: var(--gold); }
.page-body .entry-content a:hover { color: var(--charcoal); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
  .ueber-grid { grid-template-columns: 1fr; gap: 48px; }
  .ueber-visual { display: none; }
  .trauerdruck-grid { grid-template-columns: repeat(2, 1fr); }
  .kontakt-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  section { padding: 64px 0; }
  #primary-nav { display: none; }
  .hamburger { display: flex; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .vorsorge-grid { grid-template-columns: 1fr; }
  .trauerdruck-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-badges { gap: 20px; }
  .ueber-jahrzehnte { right: 0; bottom: -20px; }
}
