:root {
  --paper: #f7f1e9;
  --ink: #172239;
  --muted: #455469;
  --petrol: #1a6268;
  --petrol-deep: #114e54;
  --sage: #e0ebe5;
  --apricot: #f9d5c0;
  --night: #1b263a;
  --rule: #c9c8c7;
  --white: #fffaf4;
  --sans: 'DM Sans', sans-serif;
  --serif: 'Lora', Georgia, serif;
  --editorial: 'Literata', Georgia, serif;
  --wrap: 1252px;
  --gutter: clamp(19px, 4.8vw, 72px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 22px; }
body.beratung-petrol {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.62 var(--sans);
}
.beratung-petrol img { display: block; max-width: 100%; }
.beratung-petrol figure { margin: 0; }
.beratung-petrol a { color: inherit; }
.beratung-petrol :focus-visible { outline: 2px solid var(--petrol); outline-offset: 5px; }
.beratung-petrol .wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.beratung-petrol h1, .beratung-petrol h2, .beratung-petrol h3, .beratung-petrol p { margin: 0; }
.beratung-petrol h1, .beratung-petrol h2, .beratung-petrol h3 {
  font-family: var(--sans);
  font-weight: 600;
  color: inherit;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.beratung-petrol h1 { font-size: clamp(2.65rem, 5.5vw, 5.05rem); line-height: 1.04; }
.beratung-petrol h2 { font-size: clamp(2rem, 3.6vw, 3.55rem); line-height: 1.12; }
.beratung-petrol h3 { font-size: clamp(1.34rem, 2.2vw, 2rem); line-height: 1.08; }
.beratung-petrol .eyebrow {
  display: block;
  color: inherit;
  font: 600 .73rem/1.45 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.beratung-petrol .skip {
  position: fixed;
  top: 0;
  left: 12px;
  z-index: 40;
  padding: 10px 16px;
  background: var(--white);
  transform: translateY(-120%);
}
.beratung-petrol .skip:focus { transform: translateY(12px); }

.beratung-petrol .header {
  position: relative;
  inset: auto;
  min-height: 0;
  z-index: 10;
  border: 0;
  box-shadow: none;
  background: var(--paper);
  backdrop-filter: none;
  color: var(--ink);
}
.beratung-petrol .header-inner {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  min-height: 0;
  height: auto;
  border-bottom: 1px solid var(--rule);
}
.beratung-petrol .brand { display: inline-block; width: clamp(190px, 23vw, 310px); max-width: 100%; flex: none; }
.beratung-petrol .brand img { width: 100%; height: auto; object-fit: contain; mix-blend-mode: normal; border-radius: 0; }
.beratung-petrol .main-nav { display: flex; align-items: center; gap: clamp(15px, 2.5vw, 39px); color: var(--ink); }
.beratung-petrol .main-nav a {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  min-height: 44px;
  white-space: nowrap;
  font: 500 clamp(.9rem, 1.2vw, 1.05rem)/1.25 var(--sans);
  letter-spacing: 0;
  text-decoration: none;
}
.beratung-petrol .main-nav a:is(:hover, [aria-current="page"]):not(.nav-cta) { color: var(--petrol-deep); text-decoration: underline; text-underline-offset: .3em; }
.beratung-petrol .menu-button { display: none; }
.beratung-petrol .button, .beratung-petrol .main-nav .nav-cta {
  display: inline-flex;
  gap: .55em;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .65rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 99px;
  background: var(--petrol);
  color: var(--white);
  box-shadow: none;
  font: 500 1rem/1.3 var(--sans);
  text-align: center;
  text-decoration: none;
  letter-spacing: 0;
}
.beratung-petrol :is(.button, .main-nav .nav-cta):hover { color: white; background: var(--petrol-deep); }
.beratung-petrol .main-nav .nav-cta span { color: inherit; }
.beratung-petrol .text-link {
  display: inline;
  padding: 0;
  border: 0;
  color: inherit;
  font: 500 1rem/1.45 var(--sans);
  text-decoration: underline;
  text-underline-offset: .26em;
  text-decoration-thickness: 1px;
}
.beratung-petrol .text-link:hover { text-decoration-thickness: 2px; }

.home-hero {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 26px;
  padding: clamp(39px, 5vw, 68px) 0 23px;
  border-bottom: 1px solid var(--rule);
}
.home-hero-copy { position: relative; z-index: 1; align-self: center; }
.home-hero h1 { margin: 20px 0 24px; font-size: clamp(2.5rem, 4.65vw, 5.15rem); line-height: .99; letter-spacing: -.07em; }
.home-hero h1 em { display: inline-block; color: var(--petrol); font: italic 500 .89em/.99 var(--serif); letter-spacing: -.065em; }
.home-hero .intro-copy { max-width: 31rem; color: var(--ink); font-size: clamp(1.07rem, 1.8vw, 1.43rem); line-height: 1.46; }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 22px; margin: 25px 0 0; }
.home-hero-picture { position: relative; min-width: 0; height: clamp(280px, 38vw, 525px); margin: -34px -18px -35px -29px !important; }
.home-hero-picture img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.1);
  mask-image: radial-gradient(ellipse 60% 58% at center, #000 52%, #000c 72%, transparent 94%);
  mix-blend-mode: multiply;
}
.home-hero-note { grid-column: 1; align-self: end; margin-top: 34px !important; color: var(--muted); }
.home-perspective {
  display: grid;
  grid-template-columns: minmax(8rem, .3fr) 1fr;
  gap: 24px;
  padding: clamp(27px, 3.65vw, 51px) 0;
  border-bottom: 1px solid var(--rule);
}
.home-perspective .eyebrow { padding-top: .35em; }
.home-perspective h2 { font-size: clamp(1.59rem, 3vw, 2.75rem); }
.home-perspective p:not(.eyebrow) { margin-top: 9px; color: var(--muted); font-size: 1.08rem; }
.home-offers { padding-top: clamp(37px, 5vw, 68px); }
.home-offers h2 { margin: 9px 0 24px; }
.home-offers .offer-intro { max-width: 65ch; margin: -8px 0 24px; color: var(--muted); }
.beratung-petrol .topic-guide { margin-block: clamp(30px, 5vw, 64px); }
.beratung-petrol .home-topic-guide { margin-block-end: 0; }
.beratung-petrol .topic-guide h3 { margin-bottom: .6em; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.beratung-petrol .topic-guide > p { max-width: 65ch; margin-top: .5em; color: var(--muted); }
.beratung-petrol .topic-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 4vw, 50px);
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.beratung-petrol .topic-guide-list > li { margin: 0; padding: 12px 0; border-top: 1px solid var(--rule); }
.beratung-petrol .topic-guide-list a { display: inline-block; font-weight: 650; }
.beratung-petrol .topic-guide-list p { margin: 4px 0 0; color: var(--muted); }

@media (max-width: 640px) {
  .beratung-petrol .topic-guide-list { grid-template-columns: minmax(0, 1fr); }
}

.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.offer-card {
  display: flex;
  position: relative;
  isolation: isolate;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  overflow: hidden;
  min-height: clamp(300px, 31vw, 375px);
  border-radius: 19px;
  background: var(--card-bg);
  color: var(--card-ink, var(--ink));
}
.offer-sage { --card-bg: #e0ebe5; }
.offer-apricot { --card-bg: #f9d5c0; }
.offer-night { --card-bg: #1b263a; --card-ink: #fffaf4; }
.offer-card img {
  position: absolute;
  z-index: -2;
  top: -13%;
  right: -7%;
  width: 88%;
  height: auto;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 64% 63% at center, #000 50%, transparent 83%);
}
.offer-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, var(--card-bg) 20%, transparent 68%);
  pointer-events: none;
}
.offer-copy { padding: clamp(18px, 2.3vw, 30px); }
.offer-copy .eyebrow { margin-bottom: 8px; font-size: .68rem; }
.offer-copy h3 { margin-bottom: 7px; font-size: clamp(1.42rem, 2.25vw, 2.36rem); }
.offer-copy > p:not(.eyebrow) { max-width: 23ch; line-height: 1.42; margin: 0 0 11px; }
.offer-night a:focus-visible { outline-color: var(--white); }
.offer-end {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  margin-top: 22px;
  border-block: 1px solid var(--rule);
}
.offer-end p { font-style: italic; }
.home-divider { height: clamp(84px, 15vw, 190px); margin-top: 10px; overflow: hidden; pointer-events: none; }
.home-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 83%, transparent);
}

.home-about {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 100px);
  align-items: center;
  position: relative;
  isolation: isolate;
  margin-top: 22px;
  margin-bottom: clamp(58px, 8vw, 108px);
}
.home-about::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 50%;
  height: 65%;
  bottom: -28px;
  right: 0;
  background: url('beratung-petrol/akzent.webp') center right / contain no-repeat;
  opacity: .2;
  pointer-events: none;
}
.about-photo { overflow: hidden; background: var(--sage); border-radius: 24px; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1.4; object-fit: cover; object-position: 50% 24%; }
.about-copy h2 { margin: 9px 0 15px; }
.about-copy > p:not(.eyebrow) { max-width: 64ch; color: var(--muted); margin-top: 11px; }
.about-copy .home-actions { margin-top: 16px; }
.home-contact {
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 360px;
  border-radius: 23px;
  background: #f7efe6;
  border: 1px solid #e3d7ca;
}
.home-contact .contact-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 100% 54%; }
.home-contact::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #f9f2ea 3%, #f9f2eae8 38%, #f9f2ea00 75%); }
.contact-copy { align-self: center; width: min(68%, 570px); padding: clamp(25px, 5vw, 67px); }
.contact-copy h2 { margin: 10px 0 13px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); }
.contact-copy .button { margin: 20px 0 11px; }
.contact-copy .contact-places { font-size: .88rem; }

.beratung-petrol .footer { color: var(--ink); background: transparent; padding: 0; margin-top: clamp(45px, 6vw, 85px); border-top: 1px solid var(--rule); }
.beratung-petrol .footer-top, .beratung-petrol .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 17px 24px; }
.beratung-petrol .footer-top { padding: 18px 0; border: 0; }
.beratung-petrol .footer .brand { width: clamp(167px, 19vw, 230px); }
.beratung-petrol .footer-links, .beratung-petrol .footer-legal { display: flex; flex-wrap: wrap; gap: 10px 19px; }
.beratung-petrol .footer a { color: var(--ink); text-decoration: none; font-size: .9rem; }
.beratung-petrol .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.beratung-petrol .footer-bottom { color: var(--muted); border-top: 1px solid var(--rule); padding: 12px 0 22px; font-size: .85rem; }

/* The inner pages retain their article structure and readable long-form typography. */
.beratung-petrol.subpage {
  --bg: var(--paper);
  --text: var(--ink);
  --accent: var(--petrol);
  --line: var(--rule);
  --gold: var(--petrol);
  --champagne: var(--petrol);
}
.beratung-petrol .page-hero { color: var(--ink); padding-block: clamp(32px, 5.8vw, 83px); border-bottom: 1px solid var(--rule); }
.beratung-petrol .page-hero.split { gap: clamp(28px, 6vw, 88px); }
.beratung-petrol .page-hero h1 { margin-block: 12px 16px; }
.beratung-petrol .page-hero h1 em, .beratung-petrol .section-heading h2 em { color: var(--petrol); font-family: var(--serif); font-weight: 500; }
.beratung-petrol .page-hero :is(.lede, .page-meta), .beratung-petrol .section-heading > p { max-width: 65ch; color: var(--muted); }
.beratung-petrol .page-hero .actions { margin-top: 22px; }
.beratung-petrol .page-art img, .beratung-petrol .full-portrait img { width: 100%; height: auto; max-height: 500px; border-radius: 21px; }
.beratung-petrol .page-art img { aspect-ratio: 1.32; object-fit: cover; }
.beratung-petrol .page-art::after { content: none; }
.beratung-petrol .page-art[data-petrol-art='verbindung'] img {
  width: min(100%, 500px);
  margin-inline: auto;
  aspect-ratio: 1;
}
.beratung-petrol .page-art[data-petrol-art='akzent'] img { aspect-ratio: 1.5; object-fit: contain; }
.beratung-petrol .page-art[data-petrol-art='kontakt'] img { aspect-ratio: 1.7; object-position: right; }
.beratung-petrol .reading-layout, .beratung-petrol .legal-section { color: var(--ink); }
.beratung-petrol :is(.reading-layout, .legal-section, .editorial) :is(h2, h3) { margin: 0 0 .45em; }
.beratung-petrol .editorial h2::after {
  width: 42px;
  height: 1px;
  margin-top: 18px;
  background: var(--petrol);
}
.beratung-petrol :is(.reading-layout, .legal-section, .editorial) p { margin: 0 0 1em; }
.beratung-petrol :is(.reading-layout, .editorial) blockquote { font-family: var(--editorial); color: var(--petrol-deep); border-color: var(--petrol); }
.beratung-petrol :is(.reading-layout, .legal-section, .editorial) a:not(.button) { text-decoration-color: var(--petrol); text-underline-offset: .2em; }
.beratung-petrol .reading-layout .reading-hero img { border-radius: 16px; }
.beratung-petrol :is(.location, .faq details, .topic-card, .steps article, .contact-card) { border-color: var(--rule); color: var(--ink); background-color: #f9f5ef; }
.beratung-petrol .section-heading { margin-bottom: 24px; }
.beratung-petrol .section-heading .eyebrow { color: var(--petrol-deep); }
.beratung-petrol .contact-band {
  position: relative;
  isolation: isolate;
  margin-inline: auto;
  padding-block: clamp(27px, 5vw, 65px);
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  color: var(--ink);
  border-radius: 20px;
  background: linear-gradient(90deg, #f7efe6 6%, #f7efe6ee 51%, transparent 100%), url('beratung-petrol/kontakt.webp') right center / cover;
}
.beratung-petrol .contact-band::before, .beratung-petrol .contact-band::after { content: none; }
.beratung-petrol .contact-band .wrap { width: calc(100% - clamp(46px, 10vw, 116px)); }
.beratung-petrol .contact-band p { color: var(--ink); }
.beratung-petrol .contact-band h2 { font-size: clamp(1.75rem, 3.3vw, 2.9rem); margin: 7px 0 11px; }
.beratung-petrol .contact-band .button { flex: none; }

@media (max-width: 1000px) {
  .home-hero-picture { margin: -35px -14px -35px -30px !important; }
  .offer-grid { gap: 12px; }
  .offer-card { min-height: 302px; }
}
@media (max-width: 760px) {
  .beratung-petrol .header-inner { padding-block: 12px; }
  .beratung-petrol .brand { width: clamp(170px, 62vw, 253px); }
  .beratung-petrol .menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
  }
  .beratung-petrol .menu-button > span:not(.menu-icon) { display: none; }
  .beratung-petrol .menu-icon {
    position: relative;
    width: 25px;
    height: 14px;
    background: none;
    border: 0;
  }
  .beratung-petrol .menu-icon::before, .beratung-petrol .menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .beratung-petrol .menu-icon::before { top: 2px; }
  .beratung-petrol .menu-icon::after { bottom: 2px; }
  .beratung-petrol .menu-button[aria-expanded='true'] .menu-icon::before { top: 6px; transform: rotate(45deg); }
  .beratung-petrol .menu-button[aria-expanded='true'] .menu-icon::after { bottom: 6px; transform: rotate(-45deg); }
  .beratung-petrol .main-nav {
    display: none;
    position: absolute;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 14px;
    box-shadow: 0 14px 24px #17223915;
    inset: calc(100% + 8px) 0 auto auto;
    width: min(100%, 340px);
    padding: 13px 17px 17px;
    gap: 2px;
  }
  .beratung-petrol .main-nav.is-open { display: grid; }
  .beratung-petrol .main-nav .nav-cta { margin-top: 6px; }
  .home-hero { display: flex; flex-direction: column; padding: 26px 0 19px; }
  .home-hero-copy { align-self: stretch; }
  .home-hero h1 { font-size: clamp(2.18rem, 9.2vw, 4.2rem); margin: 13px 0 19px; }
  .home-hero .intro-copy { font-size: clamp(1.03rem, 4.4vw, 1.26rem); max-width: 35ch; }
  .home-hero .home-actions { flex-direction: column; gap: 12px; margin-top: 19px; }
  .home-hero .button { width: 100%; }
  .home-hero-picture { align-self: center; width: min(100%, 450px); height: auto; aspect-ratio: 1; margin: -6px auto -23px !important; }
  .home-hero-note { margin-top: 0 !important; align-self: start; font-size: .88rem; }
  .home-perspective { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .home-perspective p:not(.eyebrow) { font-size: 1rem; }
  .home-offers { padding-top: 28px; }
  .home-offers h2 { font-size: clamp(2.2rem, 8vw, 3.5rem); margin: 7px 0 17px; }
  .offer-grid { grid-template-columns: 1fr; gap: 11px; }
  .offer-card { min-height: 0; }
  .offer-card img { width: min(54%, 255px); inset: -3% -4% auto auto; }
  .offer-card::before { background: linear-gradient(90deg, var(--card-bg) 30%, var(--card-bg) 43%, transparent 89%); }
  .offer-copy { max-width: 78%; padding-block: 19px; }
  .offer-copy .eyebrow { letter-spacing: .15em; }
  .offer-copy h3 { font-size: clamp(1.38rem, 5.7vw, 2.35rem); text-wrap: wrap; }
  .offer-copy > p:not(.eyebrow) { font-size: .92rem; }
  .offer-end { margin-top: 14px; flex-wrap: wrap; }
  .home-about { grid-template-columns: 1fr; margin-top: 7px; gap: 23px; }
  .about-photo img { aspect-ratio: 1.45; }
  .home-contact { min-height: 367px; align-items: start; }
  .home-contact .contact-art { height: 76%; top: auto; object-position: 100% 60%; }
  .home-contact::after { background: linear-gradient(180deg, #faf2e9 30%, #faf2e9db 56%, #faf2e930 95%); }
  .contact-copy { width: min(100%, 410px); align-self: start; }
  .beratung-petrol .footer-top { align-items: start; flex-direction: column; }
  .beratung-petrol .page-hero.split { grid-template-columns: minmax(0, 1fr); }
  .beratung-petrol .page-hero:not(.split) h1, .beratung-petrol .page-hero.split h1 { font-size: clamp(2.35rem, 9vw, 3.8rem); }
  .beratung-petrol .page-art img { max-height: 330px; }
}
@media (max-width: 370px) {
  .offer-copy { max-width: 89%; }
  .offer-card img { width: 47%; right: -5%; }
  .beratung-petrol .legal-section h2 { font-size: clamp(1.75rem, 8.75vw, 2rem); overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (min-width: 681px) {
  .beratung-petrol .contact-locations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
 
.radix-portrait { padding-block: clamp(24px, 4.5vw, 64px); }
.radix-portrait figure { max-width: 820px; margin-inline: auto; }
.radix-portrait img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 13px; }
.radix-portrait figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; color: var(--muted); font-size: .925rem; }

.beratung-petrol .home-gift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(18px, 4vw, 60px);
  padding-block: clamp(30px, 5vw, 62px);
  border-bottom: 1px solid var(--rule);
}
.home-gift h2 { font-size: clamp(1.65rem, 3.2vw, 2.75rem); }
.home-gift-copy p { max-width: 54ch; margin: 10px 0 14px; color: var(--muted); }
.home-gift-photo img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 12px 30px #442d211c; }

.beratung-petrol .training-timeline { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.beratung-petrol .training-station {
  padding: 0 0 clamp(22px, 4vw, 38px) clamp(16px, 3vw, 32px);
  border-inline-start: 2px solid var(--sage);
}
.beratung-petrol .training-station:last-child { padding-block-end: 0; }
.beratung-petrol .training-station .training-period {
  margin: 0 0 7px;
  color: var(--petrol-deep);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.beratung-petrol .training-station h3 { font-size: clamp(1.2rem, 2.2vw, 1.62rem); line-height: 1.26; }
.beratung-petrol .training-station > p:last-child { margin-bottom: 0; }
.beratung-petrol .training-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }

@media (max-width: 720px) {
  .beratung-petrol .home-gift { grid-template-columns: minmax(0, 1fr); }
  .home-gift-photo img { border-radius: 12px; }
}
