/* Design DNA: Form hero with matter-type booking fields; alpine white + Bavarian blue; precise Munich Kanzlei mood */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;0,6..72,700;1,6..72,400&display=swap');

:root {
  --am-bavarian: #1A3A6B;
  --am-bavarian-dark: #122952;
  --am-bavarian-light: #254A82;
  --am-alpine: #F5F7FA;
  --am-alpine-dark: #E4E9F0;
  --am-gold: #C5A35A;
  --am-gold-light: #D4B872;
  --am-white: #FFFFFF;
  --am-text: #1C2433;
  --am-text-muted: #5A6478;
  --am-font-serif: 'Newsreader', Georgia, serif;
  --am-font-sans: 'Archivo', 'Segoe UI', sans-serif;
  --am-max: 1180px;
  --am-header-h: 76px;
  --am-radius: 6px;
  --am-transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--am-font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--am-text);
  background: var(--am-white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--am-bavarian); text-decoration: none; transition: color var(--am-transition); }
a:hover { color: var(--am-bavarian-light); }

h1, h2, h3, h4 {
  font-family: var(--am-font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--am-bavarian);
}

h1 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

.am-container {
  width: 100%;
  max-width: var(--am-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header — light bar, blue CTA */
.am-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--am-header-h);
  background: var(--am-white);
  border-bottom: 1px solid var(--am-alpine-dark);
  box-shadow: 0 1px 8px rgba(26, 58, 107, 0.06);
}

.am-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--am-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.am-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.am-logo__name {
  font-family: var(--am-font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--am-bavarian);
}

.am-logo__tag {
  font-size: 0.68rem;
  color: var(--am-text-muted);
  letter-spacing: 0.04em;
}

.am-nav { display: flex; gap: 1.25rem; list-style: none; align-items: center; }

.am-nav a {
  color: var(--am-text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--am-transition);
}

.am-nav a:hover,
.am-nav a.am-nav--active { color: var(--am-bavarian); }

.am-header__cta {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: var(--am-bavarian);
  color: var(--am-white) !important;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--am-radius);
  transition: background var(--am-transition);
}

.am-header__cta:hover {
  background: var(--am-bavarian-dark);
  color: var(--am-white) !important;
}

.am-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.am-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--am-bavarian);
  transition: var(--am-transition);
}

.am-burger.am-burger--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.am-burger.am-burger--open span:nth-child(2) { opacity: 0; }
.am-burger.am-burger--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Form Hero */
.am-hero {
  position: relative;
  margin-top: var(--am-header-h);
  min-height: calc(100vh - var(--am-header-h));
  background: var(--am-alpine);
  overflow: hidden;
}

.am-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
}

.am-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 247, 250, 0.96) 0%, rgba(245, 247, 250, 0.78) 50%, rgba(26, 58, 107, 0.1) 100%);
}

.am-hero__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
}

.am-hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}

.am-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am-gold);
  margin-bottom: 1rem;
}

.am-hero__lead {
  font-size: 1.08rem;
  color: var(--am-text-muted);
  max-width: 520px;
}

.am-booking-form {
  background: var(--am-white);
  border: 1px solid var(--am-alpine-dark);
  border-top: 3px solid var(--am-gold);
  border-radius: var(--am-radius);
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(26, 58, 107, 0.1);
}

.am-booking-form h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--am-bavarian);
}

.am-form-group { margin-bottom: 1rem; }

.am-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--am-bavarian);
  margin-bottom: 0.35rem;
}

.am-form-group input,
.am-form-group select,
.am-form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--am-font-sans);
  font-size: 0.92rem;
  border: 1px solid var(--am-alpine-dark);
  border-radius: var(--am-radius);
  background: var(--am-alpine);
  color: var(--am-text);
  transition: border-color var(--am-transition);
}

.am-form-group input:focus,
.am-form-group select:focus,
.am-form-group textarea:focus {
  outline: none;
  border-color: var(--am-bavarian);
}

.am-form-group textarea { min-height: 90px; resize: vertical; }

/* Buttons */
.am-btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--am-font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--am-radius);
  cursor: pointer;
  transition: all var(--am-transition);
}

.am-btn--primary {
  background: var(--am-bavarian);
  color: var(--am-white);
  border-color: var(--am-bavarian);
}

.am-btn--primary:hover {
  background: var(--am-bavarian-dark);
  border-color: var(--am-bavarian-dark);
  color: var(--am-white);
}

.am-btn--gold {
  background: var(--am-gold);
  color: var(--am-white);
  border-color: var(--am-gold);
}

.am-btn--gold:hover {
  background: var(--am-gold-light);
  border-color: var(--am-gold-light);
  color: var(--am-white);
}

.am-btn--outline {
  background: transparent;
  color: var(--am-bavarian);
  border-color: var(--am-bavarian);
}

.am-btn--outline:hover {
  background: var(--am-bavarian);
  color: var(--am-white);
}

.am-btn--full { width: 100%; text-align: center; }

/* Sections */
.am-section { padding: 5rem 0; }

.am-section--alpine { background: var(--am-alpine); }

.am-section--bavarian { background: var(--am-bavarian); color: var(--am-white); }
.am-section--bavarian h2,
.am-section--bavarian h3 { color: var(--am-white); }
.am-section--bavarian p { color: rgba(255, 255, 255, 0.88); }

.am-section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.am-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--am-gold);
  margin-bottom: 0.75rem;
}

.am-section--bavarian .am-eyebrow { color: var(--am-gold-light); }

/* Cards grid */
.am-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.am-card {
  background: var(--am-white);
  border: 1px solid var(--am-alpine-dark);
  border-radius: var(--am-radius);
  overflow: hidden;
  transition: box-shadow var(--am-transition);
}

.am-card:hover { box-shadow: 0 8px 28px rgba(26, 58, 107, 0.1); }

.am-card__img { aspect-ratio: 4/3; overflow: hidden; }
.am-card__img img { width: 100%; height: 100%; object-fit: cover; }

.am-card__body { padding: 1.5rem; }

.am-card__body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.am-card__body p {
  font-size: 0.92rem;
  color: var(--am-text-muted);
  margin-bottom: 0.75rem;
}

.am-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--am-bavarian);
}

/* Steps */
.am-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.am-step {
  text-align: center;
  padding: 1.5rem;
}

.am-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--am-bavarian);
  color: var(--am-white);
  font-family: var(--am-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.am-step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.am-step p { font-size: 0.92rem; color: var(--am-text-muted); margin-bottom: 0; }

/* Stats */
.am-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.am-stat__value {
  font-family: var(--am-font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--am-gold);
  margin-bottom: 0.35rem;
}

.am-section--bavarian .am-stat__value { color: var(--am-gold-light); }

.am-stat__label {
  font-size: 0.85rem;
  color: var(--am-text-muted);
}

.am-section--bavarian .am-stat__label { color: rgba(255, 255, 255, 0.75); }

/* Split layout */
.am-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.am-split__img {
  border-radius: var(--am-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26, 58, 107, 0.12);
}

.am-split__text h2 { margin-bottom: 1.25rem; }

.am-list {
  list-style: none;
  margin: 1.25rem 0;
}

.am-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.am-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--am-gold);
  border-radius: 50%;
}

/* CTA */
.am-cta {
  position: relative;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.am-cta__bg {
  position: absolute;
  inset: 0;
}

.am-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.am-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 107, 0.82);
}

.am-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.am-cta__title {
  color: var(--am-white);
  margin-bottom: 1rem;
}

.am-cta__text {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
}

/* Page hero */
.am-page-hero {
  margin-top: var(--am-header-h);
  padding: 4rem 0 3rem;
  background: var(--am-alpine);
  border-bottom: 1px solid var(--am-alpine-dark);
}

.am-page-hero h1 { margin-bottom: 1rem; }
.am-page-hero p { color: var(--am-text-muted); max-width: 640px; margin-bottom: 0; }

/* Practice blocks */
.am-practice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--am-alpine-dark);
}

.am-practice:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.am-practice:nth-child(even) { direction: rtl; }
.am-practice:nth-child(even) > * { direction: ltr; }

.am-practice__img {
  border-radius: var(--am-radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(26, 58, 107, 0.1);
}

.am-practice__tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--am-gold);
  margin-bottom: 0.5rem;
}

.am-practice__text { color: var(--am-text-muted); margin-bottom: 1.25rem; }

/* Team */
.am-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.am-team-card {
  text-align: center;
  background: var(--am-white);
  border: 1px solid var(--am-alpine-dark);
  border-radius: var(--am-radius);
  overflow: hidden;
  transition: box-shadow var(--am-transition);
}

.am-team-card:hover { box-shadow: 0 8px 28px rgba(26, 58, 107, 0.1); }

.am-team-card__photo {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.am-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.am-team-card__body { padding: 1.5rem; }

.am-team-card__name {
  font-family: var(--am-font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.am-team-card__role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--am-gold);
  margin-bottom: 0.75rem;
}

.am-team-card__bio {
  font-size: 0.9rem;
  color: var(--am-text-muted);
  margin-bottom: 0;
}

/* Contact */
.am-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.am-contact-info h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.am-contact-info h3:first-child { margin-top: 0; }

.am-contact-info p { margin-bottom: 0.5rem; }

.am-map-placeholder {
  background: var(--am-alpine);
  border: 1px solid var(--am-alpine-dark);
  border-radius: var(--am-radius);
  padding: 2.5rem;
  text-align: center;
}

.am-map-placeholder p { margin-bottom: 0.5rem; }

/* Prose (privacy) */
.am-prose { max-width: 720px; }

.am-prose h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.am-prose h2:first-child { margin-top: 0; }

.am-prose ul {
  margin: 0 0 1rem 1.25rem;
}

.am-prose li { margin-bottom: 0.35rem; }

/* Footer */
.am-footer {
  background: var(--am-bavarian);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
}

.am-footer a { color: var(--am-gold-light); }
.am-footer a:hover { color: var(--am-white); }

.am-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.am-footer__brand {
  font-family: var(--am-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--am-white);
  margin-bottom: 0.75rem;
}

.am-footer h4 {
  font-family: var(--am-font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--am-gold);
  margin-bottom: 1rem;
}

.am-footer ul { list-style: none; }
.am-footer li { margin-bottom: 0.45rem; font-size: 0.9rem; }

.am-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.am-footer__legal a { margin-left: 1.25rem; }

/* Cookie — center modal */
.am-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(26, 58, 107, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.am-cookie-overlay.am-cookie--visible { display: flex; }

.am-cookie {
  max-width: 440px;
  width: 100%;
  background: var(--am-white);
  border-radius: var(--am-radius);
  border-top: 3px solid var(--am-gold);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  text-align: center;
}

.am-cookie h4 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--am-bavarian);
}

.am-cookie p {
  font-size: 0.88rem;
  color: var(--am-text-muted);
  margin-bottom: 1.25rem;
}

.am-cookie__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.am-cookie__actions .am-btn {
  flex: 1;
  max-width: 160px;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 900px) {
  .am-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .am-grid-3 { grid-template-columns: 1fr; }
  .am-steps { grid-template-columns: 1fr; }
  .am-stats { grid-template-columns: repeat(2, 1fr); }
  .am-split { grid-template-columns: 1fr; }
  .am-practice,
  .am-practice:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .am-team { grid-template-columns: 1fr; }
  .am-contact-grid { grid-template-columns: 1fr; }
  .am-footer__grid { grid-template-columns: repeat(2, 1fr); }

  .am-burger { display: flex; }

  .am-nav {
    position: fixed;
    top: var(--am-header-h);
    left: 0; right: 0;
    background: var(--am-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--am-alpine-dark);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--am-transition);
  }

  .am-nav.am-nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .am-header__cta { display: none; }
}

@media (max-width: 560px) {
  .am-section { padding: 3.5rem 0; }
  .am-stats { grid-template-columns: 1fr; }
  .am-footer__grid { grid-template-columns: 1fr; }
  .am-footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .am-cookie__actions { flex-direction: column; }
  .am-cookie__actions .am-btn { max-width: 100%; }
}
