:root {
  --ink: #1c2226;
  --blue: #015a82;
  --blue-dark: #013a54;
  --paper: #faf9f7;
  --paper-alt: #eaf1f4;
  --accent: #f7a501;
  --accent-dark: #c98600;
  --line: #dbe3e7;
  --max-width: 1180px;
  --radius: 0;
  --pill: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: "Cabin", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.05; margin: 0 0 0.5em; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.card p, .feature-cards p, .about-grid p { font-weight: 500; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}
.section-head .eyebrow { justify-content: center; }
.regions .eyebrow, .landing .eyebrow { justify-content: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: var(--pill);
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.btn::after {
  content: "→";
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgba(247, 165, 1, 0.55);
}
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: var(--pill);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgba(1, 90, 130, 0.45);
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--blue), var(--accent)) 1;
  z-index: 50;
  transition: box-shadow 0.3s ease;
}
header.site-header.is-scrolled {
  box-shadow: 0 10px 30px -14px rgba(1, 30, 45, 0.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  gap: 1rem;
}
.logo img { height: 58px; width: auto; transition: transform 0.25s ease; }
.logo:hover img { transform: scale(1.04); }
nav.main-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a {
  position: relative;
  padding-bottom: 3px;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s ease;
}
nav.main-nav a:hover {
  text-decoration: none;
}
nav.main-nav a:hover::after {
  right: 0;
}
.header-actions { display: flex; align-items: center; gap: 1rem; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--blue);
}

@media (max-width: 820px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.9rem;
  }
  .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 5.5rem 0;
  min-height: min(80vh, 720px);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background: linear-gradient(90deg, rgba(8, 12, 14, 0.78) 0%, rgba(8, 12, 14, 0.5) 42%, rgba(8, 12, 14, 0.12) 78%), url("img/hero-beton.jpg") left center/cover no-repeat;
}
.hero .container { width: 100%; max-width: 720px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; margin-bottom: 1.6rem; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 { animation: heroIn 0.8s ease both; }
.hero p.lead { animation: heroIn 0.8s ease 0.12s both; }
.hero .btn { animation: heroIn 0.8s ease 0.24s both; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--pill);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: var(--pill);
  animation: scrollCue 1.8s ease infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(10px); }
}
@media (max-width: 700px) {
  .scroll-cue { display: none; }
}

/* Feature cards under hero */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-cards a {
  background: var(--paper);
  padding: 0 0 2rem;
  color: var(--ink);
  text-decoration: none;
  display: block;
  overflow: hidden;
  transition: background 0.25s ease;
}
.feature-cards a img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 1.4rem;
  transition: transform 0.5s ease;
}
.feature-cards a:hover { background: var(--paper-alt); }
.feature-cards a:hover img { transform: scale(1.07); }
.feature-cards h3 { margin: 0 1.6rem 0.4rem; }
.feature-cards p { margin: 0 1.6rem 1em; }
.feature-cards .arrow { margin: 0 1.6rem; display: inline-block; transition: transform 0.25s ease; }
.feature-cards .arrow { color: var(--ink); font-weight: 700; font-size: 1.3rem; }
.feature-cards a:hover .arrow { transform: translateX(4px); }
@media (max-width: 820px) {
  .feature-cards { grid-template-columns: 1fr; }
}

/* Regions bar */
.regions {
  background: linear-gradient(135deg, var(--paper-alt), #dcebf1);
  padding: 2rem 0;
  text-align: center;
}
.regions .eyebrow { justify-content: center; }
.regions p.list { font-weight: 600; max-width: 900px; margin: 0 auto; }

/* Generic section */
section { padding: 4.5rem 0; }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.card-grid.tight { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; }
.card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card h3 { font-size: 1.15rem; }
.card img {
  border-radius: var(--radius);
  margin-bottom: 1rem;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover img { transform: scale(1.06); }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -18px rgba(1, 30, 45, 0.22);
}
.card img.logo-contain {
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  max-width: 200px;
  padding: 1rem;
  transition: none;
}
.card:has(img.logo-contain):hover img.logo-contain { transform: none; }

.subsection { margin-bottom: 3.5rem; }
.subsection:last-child { margin-bottom: 0; }
.subsection > h3.group-title {
  font-size: 1.3rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.6rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-grid img { border-radius: var(--radius); }
p.portrait-name {
  margin: 0.8rem 0 0;
  font-weight: 700;
  text-align: left;
}
.about-grid ul.credentials {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  font-weight: 600;
}
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid img { max-width: 240px; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info dt { font-weight: 700; margin-top: 1.2rem; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 0.2rem 0 0; }

.booking-block h3 { margin-bottom: 1rem; }
.booking-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 1.2rem;
}
.booking-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
  min-height: 1.7rem;
  display: flex;
  align-items: center;
}
.booking-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.booking-reassurance {
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1.4rem;
}
/* Booking modal */
body.modal-open { overflow: hidden; }
.booking-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}
.booking-modal.is-open { display: block; }
.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 14, 0.75);
}
.booking-modal-panel {
  position: relative;
  margin: 4vh auto;
  width: min(760px, 94vw);
  height: 92vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}
.booking-modal-panel iframe {
  flex: 1;
  width: 100%;
  border: 0;
}
.booking-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.booking-modal-close:hover { background: var(--paper-alt); }
@media (max-width: 700px) {
  .booking-modal-panel { width: 100vw; height: 100vh; margin: 0; }
}

/* Footer */
footer.site-footer {
  background: linear-gradient(165deg, var(--blue-dark) 0%, #012536 100%);
  color: #c7dbe4;
  padding: 3rem 0 1.5rem;
}
footer.site-footer a {
  color: #fff;
  transition: opacity 0.2s ease;
}
footer.site-footer a:hover { opacity: 0.75; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 { color: #fff; margin-bottom: 0.8rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid #124f6d;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: space-between;
}

/* Simple legal pages */
.legal main {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2.2rem; }
.legal .todo {
  background: #fff3cd;
  border: 1px solid #e2c675;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  margin: 0.6rem 0 1.2rem;
}

/* Cörstges-Übergangsseite */
body.landing {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-alt);
  font-family: "Cabin", "Helvetica Neue", Arial, sans-serif;
}
.landing-main {
  width: 100%;
  padding: 3rem 1.5rem;
  text-align: center;
}
.landing-card {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 3rem 2.5rem;
}
.landing-logo { max-width: 220px; margin: 0 auto 2rem; }
.landing-logo-arrival { margin-top: 0.5rem; }
.landing-card h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1.2rem; }
.landing-card p { text-align: left; margin-bottom: 2rem; }
.landing-footer { margin-top: 1.5rem; font-size: 0.85rem; color: #6b6558; }

/* Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
