/* =========================================================================
   Rechtsanwaltskanzlei Sommerer — Stylesheet
   Seriös-klassisch, modern 2026. Keine externen Abhängigkeiten (DSGVO-clean).
   ========================================================================= */

:root {
  --ink:       #16202e;
  --navy:      #0f2540;
  --navy-2:    #1b3c62;
  --bordeaux:  #7c2d3a;
  --bordeaux-2:#96404d;
  --bg:        #f6f4ef;   /* warm paper  */
  --bg-alt:    #ffffff;
  --bg-dark:   #0f2540;
  --line:      rgba(15, 37, 64, .14);
  --muted:     #55606e;
  --muted-on-dark: #b9c6d6;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(15,37,64,.06), 0 12px 34px rgba(15,37,64,.08);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------ base ------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* Schutz gegen horizontale Überbreite; beeinflusst Sticky-Header nicht */
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: .2px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 .4em; color: var(--navy); }
h3 { font-size: 1.28rem; margin: 0 0 .4em; color: var(--navy); }
p  { margin: 0 0 1.1em; }
a  { color: var(--bordeaux); text-decoration: none; }
a:hover { color: var(--bordeaux-2); }
img { max-width: 100%; display: block; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: linear-gradient(180deg, #eef1f5, #f6f4ef); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--bordeaux);
  margin: 0 0 .9em;
}
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }
.rule { width: 54px; height: 3px; background: var(--bordeaux); border: 0; margin: 0 0 1.5rem; }

/* ------------------------------ buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .82em 1.5em; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--bordeaux); color: #fff; }
.btn--primary:hover { background: var(--bordeaux-2); color: #fff; box-shadow: 0 10px 24px rgba(124,45,58,.28); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--on-dark:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ------------------------------ header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,239,.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(15,37,64,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); }
.brand__mark {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 1.02rem; letter-spacing: .5px;
  border: 1px solid rgba(255,255,255,.15);
}
.brand__name { font-size: 1.12rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.brand__sub  { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--sans); font-size: .96rem; font-weight: 500; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--bordeaux); transition: right .3s var(--ease);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__phone { font-weight: 600; color: var(--navy); white-space: nowrap; }
.nav__phone:hover { color: var(--bordeaux); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* ------------------------------ hero ------------------------------------ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(9,21,38,.96) 0%, rgba(11,28,50,.90) 34%, rgba(11,28,50,.62) 62%, rgba(11,28,50,.42) 100%),
    radial-gradient(1100px 480px at 82% -8%, rgba(124,45,58,.34), transparent 60%),
    url("../img/coccobolo.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center right;
  background-repeat: no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 100% 34px;
}
.hero__inner { position: relative; z-index: 1; padding: clamp(84px, 13vw, 168px) 0 clamp(70px, 10vw, 128px); max-width: 820px; }
.hero .eyebrow { color: #e6b8bf; }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem); color: #fff; margin: 0 0 .35em;
  letter-spacing: .3px;
}
.hero__lead {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.72rem); line-height: 1.4;
  color: #eaf1f8; font-weight: 400; margin-bottom: 1.4rem; font-style: italic;
}
.hero__text { color: var(--muted-on-dark); font-size: 1.08rem; max-width: 620px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__meta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; color: var(--muted-on-dark); font-size: .95rem; }
.hero__meta strong { color: #fff; font-weight: 600; display: block; font-size: 1.05rem; font-family: var(--serif); }

/* ------------------------------ practice areas -------------------------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.area {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.area:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(15,37,64,.14); border-color: rgba(124,45,58,.35); }
.area__num { font-family: var(--serif); font-size: .95rem; color: var(--bordeaux); letter-spacing: .1em; margin-bottom: 1rem; }
.area h3 { font-size: 1.42rem; }
.area p { color: var(--muted); font-size: .98rem; }
.area ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.area li { padding-left: 1.4em; position: relative; color: var(--ink); font-size: .95rem; margin-bottom: .5em; }
.area li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--bordeaux); border-radius: 50%; }
.area__note { font-size: .84rem; color: var(--muted); font-style: italic; margin-top: 1.1rem; margin-bottom: 0; }

/* ------------------------------ about ----------------------------------- */
.about { display: grid; grid-template-columns: 360px 1fr; gap: 60px; align-items: start; }
.about__figure { position: relative; }
.about__figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; display: block; }
.about__figure::before {
  content: ""; position: absolute; left: -18px; top: -18px; width: 120px; height: 120px;
  border-top: 3px solid var(--bordeaux); border-left: 3px solid var(--bordeaux); border-radius: 4px 0 0 0;
}
.about__caption { margin-top: 1rem; font-family: var(--serif); color: var(--navy); }
.about__caption strong { display: block; font-size: 1.15rem; }
.about__caption span { color: var(--muted); font-family: var(--sans); font-size: .9rem; }

.timeline { list-style: none; padding: 0; margin: 1.6rem 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.3rem 1.6rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-alt); border: 3px solid var(--bordeaux); }
.timeline b { color: var(--navy); font-family: var(--serif); }
.timeline .yr { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--bordeaux); text-transform: uppercase; margin-right: .3rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.tag { font-size: .82rem; padding: .35em .9em; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: var(--bg); }

/* ------------------------------ contact --------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.contact__info dl { margin: 0 0 1.6rem; }
.contact__info dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 1.2rem; }
.contact__info dd { margin: .2em 0 0; font-size: 1.08rem; color: var(--ink); }
.contact__info dd a { color: var(--navy); font-weight: 500; }
.contact__info dd a:hover { color: var(--bordeaux); }
.maplink {
  display: inline-flex; align-items: center; gap: .5em; margin-top: .4rem;
  font-weight: 600; font-size: .95rem;
}

.form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form__row { margin-bottom: 1.1rem; }
.form label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--navy); margin-bottom: .4rem; }
.form label .req { color: var(--bordeaux); }
.form input, .form textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .8em .9em; border: 1px solid var(--line); border-radius: var(--radius); background: #fdfcfa;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(27,60,98,.12); }
.form textarea { resize: vertical; min-height: 130px; }
.form__consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: .3rem 0 1.3rem; }
.form__consent input { width: auto; margin-top: .28em; flex: 0 0 auto; }
.form__consent a { font-weight: 600; }
.form .btn--primary { width: 100%; justify-content: center; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: .85em 1em; border-radius: var(--radius); margin-bottom: 1.3rem; font-size: .95rem; font-weight: 500; }
.form__status.is-ok { background: #e7f3ec; color: #1d5b39; border: 1px solid #b6ddc4; }
.form__status.is-error { background: #fbe9ea; color: #8a2733; border: 1px solid #eec2c6; }
.form__note { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; text-align: center; }

/* ------------------------------ footer ---------------------------------- */
.site-footer { background: var(--bg-dark); color: var(--muted-on-dark); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { font-family: var(--serif); color: #fff; font-size: 1.05rem; margin: 0 0 1rem; font-weight: 600; }
.site-footer a { color: var(--muted-on-dark); }
.site-footer a:hover { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #8598ab; }
.footer-bottom a { color: #8598ab; }

/* ------------------------------ legal ----------------------------------- */
.legal { background: var(--bg-alt); border-top: 1px solid var(--line); display: none; }
.legal.is-open { display: block; }
.legal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.legal__close {
  font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--muted);
  background: none; border: 0; cursor: pointer; padding: 6px 0; white-space: nowrap;
}
.legal__close:hover { color: var(--bordeaux); }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.legal h3 { font-size: 1.1rem; margin-top: 1.8rem; }
.legal .wrap { max-width: 860px; }
.legal p, .legal li { font-size: .96rem; color: #33404f; }
.legal .placeholder { background: #fdf3d6; border-left: 3px solid #c99a17; padding: .5em .8em; display: inline-block; border-radius: 3px; font-size: .9rem; }
.legal address { font-style: normal; }
.legal--sep { border-top: 1px solid var(--line); }
.legal__note { margin-top: 2rem; }
.footer-brand .brand { margin-bottom: 1rem; }

/* ------------------------------ reveal animation ------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .10s; }
.reveal[data-delay="2"] { transition-delay: .20s; }
.reveal[data-delay="3"] { transition-delay: .30s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .area:hover { transform: none; }
}

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 940px) {
  .areas { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about__figure { max-width: 320px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  /* Telefonnummer in der Kopfzeile ausblenden (spart Breite; erreichbar über Hero,
     Kontakt & Footer) – verhindert Überbreite der Headerzeile auf schmalen Screens. */
  .nav__links, .nav__phone { display: none; }
  .nav { gap: 10px; min-width: 0; }
  .brand { min-width: 0; }
  .brand__name, .brand__sub { white-space: nowrap; }
  .nav__cta { gap: .55rem; }
  .nav__cta .btn--primary { display: none; }
  .nav__toggle { display: block; flex: 0 0 auto; }
  .site-header.is-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
    position: absolute; top: 76px; left: 0; right: 0; background: var(--bg); padding: 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__meta { gap: 1.2rem; }
  .hero {
    background:
      linear-gradient(120deg, rgba(9,21,38,.965) 0%, rgba(11,28,50,.92) 55%, rgba(11,28,50,.78) 100%),
      radial-gradient(900px 420px at 85% -8%, rgba(124,45,58,.30), transparent 60%),
      url("../img/coccobolo.jpg");
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat;
  }
}
