/* ==========================================================================
   Steuerberaterin Sandra Schrader — Stylesheet
   ========================================================================== */

:root {
  --blue: #0e6ab1;
  --blue-dark: #094c80;
  --blue-darker: #073a63;
  --yellow: #f1c768;
  --yellow-light: #f9e5b9;
  --ink: #1f2d3a;
  --body-text: #3d4a56;
  --bg-light: #f6f7f9;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 63, 102, 0.12);
  --max-width: 1180px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --font-brand: "EB Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.65;
  font-size: 15.5px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--blue); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

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

section {
  padding: 88px 0;
}

.section-lead {
  max-width: 780px;
  margin: 0 auto 3rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--yellow-light);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-accent {
  background: var(--yellow);
  color: var(--blue-darker);
  box-shadow: 0 8px 20px rgba(241, 199, 104, .45);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(241, 199, 104, .55);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,.12);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f1f1f1;
  border-bottom: 1px solid #e4e4e4;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 52px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.4rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.02rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blue);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

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

.hero {
  position: relative;
  background: linear-gradient(120deg, var(--blue-darker), var(--blue) 65%);
  color: var(--white);
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 90px;
  min-height: 560px;
}

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .5;
  pointer-events: none;
}

.hero h1 {
  color: var(--white);
  margin-bottom: .4em;
}

.hero h1 mark {
  background: var(--yellow);
  color: var(--blue-darker);
  padding: 0 .18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero .tagline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--yellow);
  margin-bottom: .6em;
}

.hero p.lede {
  font-size: 1.08rem;
  max-width: 46ch;
  color: rgba(255,255,255,.92);
}

.hero-cta {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.25));
}

/* Value props -------------------------------------------------------------*/

.values {
  background: var(--yellow);
}

.values .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--yellow-light);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.value-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.value-card h3 {
  margin-bottom: .5em;
}

.value-card p {
  margin: 0;
  font-size: .98rem;
}

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

.leistungen-intro {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 3.2rem;
}

.leistungen-intro .icon-badge {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.service-item h3 {
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .5em;
  margin-bottom: .4em;
}

.service-item h3 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yellow-light);
  color: var(--blue-darker);
  font-size: .85rem;
  flex-shrink: 0;
}

.service-item p {
  font-size: .97rem;
  margin: 0;
}

.leistungen-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Team ----------------------------------------------------------------- */

.team {
  background: var(--yellow);
}

.team .section-lead {
  text-align: left;
  max-width: 900px;
  margin: 0 0 3rem;
}

.team .section-lead p {
  font-size: 1.02rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.team-card {
  background: var(--blue-darker);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

.team-avatar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  color: rgba(255,255,255,.92);
}

.team-card-info {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 18px;
  background: linear-gradient(0deg, rgba(4,20,36,.85), rgba(4,20,36,0));
  padding-top: 60px;
}

.team-card-info .tname {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--white);
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.team-card-info .trole {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
}

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

.kontakt {
  position: relative;
  background: var(--bg-light);
  overflow: hidden;
}

.kontakt .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
}

.kontakt-info address {
  font-style: normal;
  color: var(--blue);
  font-weight: 600;
  line-height: 1.9;
}

.map-embed {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
}

.map-embed iframe {
  display: block;
}

.map-consent,
.map-locked {
  min-height: 260px;
  height: 100%;
  background: var(--yellow-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .7rem;
  padding: 2rem;
}

.map-consent svg {
  width: 38px;
  height: 38px;
  color: var(--blue);
  opacity: .7;
}

.map-consent p,
.map-locked p {
  font-size: .92rem;
  color: var(--blue-darker);
  max-width: 38ch;
  margin: 0;
}

.map-consent-btn {
  margin-top: .2rem;
}

/* Kontaktformular (gleiches Muster wie auf druckerei-block.de) --------- */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: .4em;
}

.form-field .required {
  color: var(--blue);
}

.form-field .hint {
  font-size: .82rem;
  color: #6b7683;
  margin-top: .35em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1.5px solid #dde2e6;
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14, 106, 177, .15);
}

.form-field textarea {
  min-height: 150px;
}

.form-field.consent label {
  display: flex;
  align-items: flex-start;
  gap: .6em;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .92rem;
}

.form-field.consent input[type="checkbox"] {
  width: auto;
  min-height: auto;
  margin-top: .3em;
  accent-color: var(--blue);
}

/* Honeypot spam trap: unsichtbar für Menschen, im Tab-Index für Bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-status {
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 600;
  margin-bottom: 18px;
}

.form-status.success {
  background: var(--yellow-light);
  color: var(--blue-darker);
  border: 1px solid var(--yellow);
}

.form-status.error {
  background: #fbe3e0;
  color: #9c3524;
  border: 1px solid #eab3a9;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

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

.site-footer {
  background: var(--blue);
  color: rgba(255,255,255,.92);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 56px 0 30px;
}

.footer-columns {
  font-size: .85rem;
}

.footer-columns h4 {
  color: var(--white);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.1em;
}

.footer-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-columns li {
  margin-bottom: .55em;
}

.footer-columns a:hover {
  text-decoration: underline;
}

.footer-columns address {
  font-style: normal;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 16px 0;
  font-size: .78rem;
  text-align: center;
  color: rgba(255,255,255,.7);
}

/* Legal pages ---------------------------------------------------------- */

.legal {
  padding-bottom: 60px;
}

.legal h1 {
  color: var(--blue);
}

.legal h2 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-top: 1.8em;
}

.legal ul {
  padding-left: 1.2em;
}

.legal .updated {
  color: #7a8792;
  margin-bottom: 2em;
}

/* Cookie-Banner & Einstellungen-Dialog ---------------------------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--blue-darker);
  color: rgba(255,255,255,.95);
  box-shadow: 0 -10px 30px rgba(0,0,0,.2);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-inner p {
  margin: 0;
  font-size: .92rem;
  flex: 1 1 340px;
}

.cookie-banner-inner a {
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}

.cookie-banner-actions .btn {
  padding: 11px 20px;
  font-size: .92rem;
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.4);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.1);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(7,58,99,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal[hidden],
.cookie-banner[hidden] {
  display: none;
}

.cookie-modal-inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  max-width: 520px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.cookie-modal-inner h2 {
  color: var(--blue);
  margin-bottom: .8em;
}

.cookie-category {
  border-top: 1px solid #e6e9ec;
  padding: 16px 0;
}

.cookie-category:first-of-type {
  border-top: none;
}

.cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .4em;
}

.cookie-category-head strong {
  font-family: var(--font-head);
  color: var(--ink);
}

.cookie-category p {
  margin: 0;
  font-size: .88rem;
  color: #6b7683;
}

.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .7rem;
  margin-top: 1.2rem;
}

.footer-cookie-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 680px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-banner-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Responsive ---------------------------------------------------------- */

@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 280px; }

  .values .wrap {
    grid-template-columns: 1fr;
  }

  .leistungen-intro {
    grid-template-columns: 1fr;
  }
  .leistungen-intro .icon-badge { max-width: 200px; }

  .service-list {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kontakt .wrap {
    grid-template-columns: 1fr;
  }

  form.kontakt-form {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  section { padding: 56px 0; }

  .main-nav {
    position: fixed;
    inset: 96px 0 auto 0;
    background: #f1f1f1;
    border-bottom: 1px solid #e4e4e4;
    transform: translateY(-120%);
    transition: transform .25s ease;
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 28px 24px;
  }

  .main-nav li {
    border-bottom: 1px solid #e4e4e4;
  }

  .main-nav a {
    display: block;
    padding: 16px 0;
  }

  .nav-toggle {
    display: block;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}
