/* ==========================================================================
   ehrenwert.eu — Design-System
   Anthrazit / Grau / Off-White — redaktionell, ruhig, seriös
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root{
  --ink:        #1b1c1f;
  --ink-soft:   #4b4d52;
  --ink-faint:  #82858c;
  --bg:         #f4f4f2;
  --paper:      #ffffff;
  --line:       #dcdcda;
  --dark:       #1b1c1f;
  --dark-2:     #26282c;
  --line-dark:  #3c3e43;
  --grey-on-dark: #b9bbc0;

  --serif: "Source Serif 4", Georgia, serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3{ font-size: 1.3rem; }

p{ margin: 0 0 1.1em; max-width: 62ch; }
a{ color: inherit; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px){
  .container{ padding: 0 20px; }
}

/* ---------- Header / Navigation ---------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,244,242,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand svg{ height: 34px; width: 34px; flex-shrink: 0; }

.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name{
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.brand-sub{
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-top: 2px;
}

nav.main-nav{
  display: flex;
  gap: 36px;
}

nav.main-nav a{
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active{
  color: var(--ink);
}

nav.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after{
  transform: scaleX(1);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  width: 22px; height: 1px; background: var(--ink);
}

@media (max-width: 780px){
  nav.main-nav{
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav.main-nav.open{ max-height: 320px; }
  nav.main-nav a{
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle{ display: flex; }
}

/* ---------- Hero ---------- */

.hero{
  position: relative;
  background: var(--dark);
  color: var(--bg);
  padding: 96px 0 84px;
  overflow: hidden;
}

.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.5);
  z-index: 0;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,28,31,0.6) 0%, rgba(27,28,31,0.85) 55%, rgba(27,28,31,0.96) 100%);
  z-index: 1;
}

.hero .container{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}

.hero-brandline{ margin-bottom: 30px; }
.hero-brandline .brand-name-big{
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: #ffffff;
  letter-spacing: 0.01em;
}
.hero-brandline .brand-sub-big{
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--grey-on-dark);
  margin-top: 8px;
}

@media (max-width: 860px){
  .hero .container{ grid-template-columns: 1fr; gap: 32px; }
}

.hero h1{ color: #ffffff; }

.hero-eyebrow{
  font-size: 0.85rem;
  color: var(--grey-on-dark);
  margin-bottom: 18px;
}

.hero-lead{
  color: var(--grey-on-dark);
  max-width: 46ch;
  font-size: 1.08rem;
}

.hero-aside{
  border-left: 1px solid var(--line-dark);
  padding-left: 28px;
}

.hero-aside p{
  color: var(--grey-on-dark);
  font-size: 0.98rem;
}

.hero-cta{
  display: inline-block;
  margin-top: 8px;
  padding: 14px 28px;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.hero-cta:hover{ background: #ffffff; color: var(--dark); }

/* ---------- Sections ---------- */

section{ padding: 88px 0; }
.section-light{ background: var(--bg); }
.section-paper{ background: var(--paper); }
.section-dark{ background: var(--dark); color: var(--bg); }
.section-dark h2, .section-dark h3{ color: #fff; }
.section-dark p{ color: var(--grey-on-dark); }

.section-head{
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  margin-bottom: 56px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.section-dark .section-head{ border-top: 1px solid var(--line-dark); }

@media (max-width: 780px){
  .section-head{ grid-template-columns: 1fr; gap: 16px; }
}

.section-label{
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.section-dark .section-label{ color: var(--grey-on-dark); }

.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 780px){ .two-col{ grid-template-columns: 1fr; } }

/* ---------- Stat blocks ---------- */

.stat-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line-dark);
  padding-top: 36px;
  margin-top: 48px;
}
@media (max-width: 780px){ .stat-row{ grid-template-columns: 1fr; gap: 28px; } }

.stat-number{
  font-family: var(--serif);
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 6px;
}
.stat-caption{
  font-size: 0.92rem;
  color: var(--grey-on-dark);
  max-width: 32ch;
}

.source-note{
  font-size: 0.8rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 56px;
}
.section-dark .source-note{
  color: #7d8087;
  border-top: 1px solid var(--line-dark);
}

/* ---------- Fußnoten ---------- */

.footnote-ref{
  font-size: 0.65em;
  vertical-align: super;
  line-height: 0;
}
.footnote-ref a{
  color: var(--ink-faint);
  text-decoration: none;
  padding: 0 1px;
}
.section-dark .footnote-ref a{ color: var(--grey-on-dark); }

.footnotes{
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 20px;
}
.section-dark .footnotes{ border-top: 1px solid var(--line-dark); }

.footnotes ol{ margin: 0; padding-left: 20px; }
.footnotes li{
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.section-dark .footnotes li{ color: #86898f; }

.footnotes a{ color: inherit; text-decoration: underline; }
.footnote-back{ text-decoration: none !important; margin-left: 4px; }

/* ---------- Leistungen list ---------- */

.service-list{
  border-top: 1px solid var(--line);
}
.service-item{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 780px){
  .service-item{ grid-template-columns: 1fr; gap: 10px; }
}
.service-item h3{ margin: 0; }
.service-item p{ margin: 0; color: var(--ink-soft); }

/* ---------- Image blocks ---------- */

.media{
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--grey-on-dark);
  font-size: 0.85rem;
  text-align: center;
}
.media img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.1) brightness(0.82);
}
.media.portrait{ aspect-ratio: 3/4; }

/* ---------- Über uns ---------- */

.bio-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px){ .bio-grid{ grid-template-columns: 1fr; gap: 32px; } }

.credential-list{
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}
.credential-list li{
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Kontakt ---------- */

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } }

form.contact-form{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label{ font-size: 0.85rem; color: var(--ink-soft); }
.field input,
.field textarea{
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 4px;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  color: #fff;
  resize: vertical;
}
.field input:focus,
.field textarea:focus{
  outline: none;
  border-bottom: 1px solid #fff;
}
.field input::placeholder,
.field textarea::placeholder{ color: #6c6f76; }

.submit-btn{
  align-self: flex-start;
  margin-top: 8px;
  padding: 14px 30px;
  background: #fff;
  color: var(--dark);
  border: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.submit-btn:hover{ opacity: 0.85; }

.contact-alt{ border-left: 1px solid var(--line-dark); padding-left: 40px; }
@media (max-width: 860px){ .contact-alt{ border-left: none; padding-left: 0; border-top: 1px solid var(--line-dark); padding-top: 32px; } }

.contact-alt a{
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid var(--grey-on-dark);
  padding-bottom: 2px;
}

/* ---------- Footer ---------- */

footer.site-footer{
  background: var(--dark);
  color: var(--grey-on-dark);
  padding: 40px 0;
  font-size: 0.82rem;
  border-top: 1px solid var(--line-dark);
}
footer.site-footer .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site-footer a{
  color: var(--grey-on-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
footer.site-footer a:hover{ border-bottom-color: var(--grey-on-dark); }
.footer-links{ display: flex; gap: 20px; }

/* ---------- Legal page ---------- */

.legal h2{ margin-top: 2em; }
.legal p, .legal li{ color: var(--ink-soft); max-width: 72ch; }

/* ---------- Utility ---------- */

.eyebrow{
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
