/* ==========================================================================
   RESAMO – Website Stylesheet
   Farben, Typografie und Komponenten für Startseite, Impressum, Datenschutz.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Schriften – lokal aus /fonts, keine externen Anfragen
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-light-webfont.woff2') format('woff2'),
       url('../fonts/manrope-light-webfont.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-regular-webfont.woff2') format('woff2'),
       url('../fonts/manrope-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-semibold-webfont.woff2') format('woff2'),
       url('../fonts/manrope-semibold-webfont.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-bold-webfont.woff2') format('woff2'),
       url('../fonts/manrope-bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  --navy: #0E334C;
  --orange: #EB5519;
  --sand: #FAFAFA;
  --sage: #C6D7D2;
  --sage-soft: rgba(198, 215, 210, 0.30);
  --sage-tint: rgba(198, 215, 210, 0.32);
  --ink: #222222;

  --maxw: 1320px;
  --gutter: 48px;
  --radius-a: 4px 28px 4px 28px;
  --radius-b: 28px 4px 28px 4px;

  --shadow-card: 0 16px 36px rgba(14, 51, 76, 0.10);
  --shadow-media: 0 24px 64px rgba(14, 51, 76, 0.28);
}

/* --------------------------------------------------------------------------
   2. Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--navy);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

::selection { background: var(--orange); color: var(--sand); }

a { color: var(--navy); }
a:hover { color: var(--orange); }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

@keyframes resamoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Inhalts-Container */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --------------------------------------------------------------------------
   3. Typografie
   -------------------------------------------------------------------------- */
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }

.h-display {
  font-size: clamp(46px, 6vw, 84px);
  line-height: 1.07;
  font-weight: 300;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}

.h-section {
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 300;
}
.h-section--spaced { margin-bottom: 56px; }

.h-page {
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.07;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.h-block {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.accent { color: var(--orange); }

.eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--orange);
}

.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo { display: flex; align-items: center; }
.logo img { height: 56px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(198, 215, 210, 0.85);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sand); }

/* Hamburger – nur auf schmalen Viewports sichtbar */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(198, 215, 210, 0.4);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--sand);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle:hover { border-color: var(--orange); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn--primary { background: var(--orange); color: var(--sand); }
.btn--primary:hover { background: var(--sand); color: var(--navy); transform: translateY(-2px); }

.btn--light { background: var(--sand); color: var(--navy); }
.btn--light:hover { background: var(--navy); color: var(--sand); transform: translateY(-2px); }

.btn--outline { border: 1px solid var(--sand); color: var(--sand); padding: 14px 27px; }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: var(--sand); transform: translateY(-2px); }

.btn--pill {
  color: var(--sand);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid rgba(198, 215, 210, 0.4);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--pill:hover { background: var(--orange); border-color: var(--orange); color: var(--sand); }

.btn-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. Dunkle Sektion / Hero
   -------------------------------------------------------------------------- */
.dark {
  background: var(--navy);
  color: var(--sand);
}

.hero { display: flow-root; }

.hero-body { padding-top: 72px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(250, 250, 250, 0.07);
  border: 1px solid rgba(198, 215, 210, 0.35);
  border-radius: 999px;
  padding: 9px 18px;
  margin-bottom: 40px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: resamoPulse 1.6s ease-in-out infinite;
}
.badge-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sand);
}

.hero h1 { margin-bottom: 28px; }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
  max-width: 560px;
  color: var(--sage);
  text-wrap: pretty;
}

/* Hero-Foto ragt in die helle Sektion darunter hinein */
.hero-media { padding-top: 72px; }
.hero-media .media-frame { margin-bottom: -21%; }
.hero-spacer { padding-top: 21%; margin-bottom: 100px; }

/* --------------------------------------------------------------------------
   7. Bildrahmen & Platzhalter
   -------------------------------------------------------------------------- */
.media-frame {
  overflow: hidden;
  border-radius: 20px;
  background: #EAF0EE;
}

.media-frame--hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  box-shadow: var(--shadow-media);
}

.media-frame--portrait {
  flex: 1 1 440px;
  min-width: 320px;
  height: 460px;
}

/* Bild einfach gegen den Platzhalter tauschen – gleiche Maße, gleicher Beschnitt */
.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   8. Sektionen & Karten
   -------------------------------------------------------------------------- */
.section { padding-top: 104px; padding-bottom: 104px; }
.section--tight { padding-top: 0; padding-bottom: 96px; }
.section--sage { background: var(--sage-tint); }

.section-intro {
  margin: 20px 0 56px;
  max-width: 56ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.card-grid--narrow { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--sage-soft);
  border: 1px solid var(--sage);
  border-radius: var(--radius-a);
  padding: 36px 34px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.card:nth-child(even) { border-radius: var(--radius-b); }
.card:hover {
  background: #FFFFFF;
  border-color: var(--orange);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.card--plain {
  background: transparent;
  padding: 34px 30px;
  min-height: 0;
  gap: 10px;
}

.card-icon {
  display: flex;
  align-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--orange);
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card--plain .card-title { font-size: 19px; }

.card-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}
.card > .card-text:last-child { margin-top: auto; }
.card--plain > .card-text:last-child { margin-top: 0; }

.note {
  margin: 26px 0 0;
  font-size: 16px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   9. Über uns
   -------------------------------------------------------------------------- */
.split {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
  align-items: center;
}
.split-text { flex: 1 1 440px; min-width: 320px; }
.split-text h2 { margin-bottom: 28px; }
.split-text p { margin: 0 0 20px; }
.split-text p:last-of-type { margin-bottom: 36px; }

.value-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  line-height: 1.5;
}
.value-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 2px;
  margin-top: 7px;
  flex: none;
}

/* --------------------------------------------------------------------------
   10. CTA-Band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--orange); color: var(--sand); }
.cta-band .wrap {
  padding-top: 76px;
  padding-bottom: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-title {
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 300;
  max-width: 36ch;
  text-wrap: balance;
  flex: 1 1 520px;
  min-width: 0;
}
.cta-title b { font-weight: 700; }
.cta-band--slim { margin-top: 88px; }
.cta-band--slim .wrap { padding-top: 64px; padding-bottom: 64px; }
.cta-band--slim .cta-title {
  font-size: clamp(26px, 2.8vw, 38px);
  max-width: 24ch;
  flex: 0 1 auto;
}

/* --------------------------------------------------------------------------
   11. Kontakt & Footer
   -------------------------------------------------------------------------- */
.contact .wrap { padding-top: 88px; padding-bottom: 56px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(198, 215, 210, 0.25);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--sage);
}
.contact-value {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--sand);
  text-decoration: none;
}
a.contact-value:hover { color: var(--orange); }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
}
.footer-bar--standalone { padding-top: 0; }
.footer-legal {
  font-size: 14px;
  color: var(--sage);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 14px;
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover { color: var(--orange); }

.site-footer .wrap { padding-top: 56px; padding-bottom: 56px; }
.site-footer { margin-top: 88px; }
.cta-band + .site-footer { margin-top: 0; }

/* --------------------------------------------------------------------------
   12. Rechtsseiten (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.page-head .wrap { padding-top: 72px; padding-bottom: 88px; }
.page-head h1 { margin-bottom: 24px; }
.page-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  max-width: 64ch;
  color: var(--sage);
  text-wrap: pretty;
}

.legal {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-top: 88px;
  padding-bottom: 40px;
}

/* Schmale Spalte – auf beiden Rechtsseiten identisch */
.legal-aside,
.toc-card {
  flex: 1 1 320px;
  min-width: 280px;
  position: sticky;
  top: 1.5rem;
}

.legal-main {
  flex: 1.7 1 480px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.legal-block { scroll-margin-top: 32px; }
.legal-block h2 { margin-bottom: 18px; }
.legal-prose {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-prose p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  text-wrap: pretty;
}

.info-card {
  background: #FFFFFF;
  border: 1px solid var(--sage);
  border-radius: var(--radius-a);
  padding: 34px 32px;
}
.info-card-label {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange);
}
.info-card address {
  margin: 0 0 22px;
  font-style: normal;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
}
.info-card-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-card-links a {
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.data-rows {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--sage);
}
.data-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 20px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--sage);
}
.data-row dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.data-row dd {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}
.data-row dd a { color: var(--ink); text-decoration: none; }
.data-row dd a:hover { color: var(--orange); }

.bullet-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}
.bullet-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 2px;
  margin-top: 8px;
  flex: none;
}

.hint-card {
  background: var(--sage-tint);
  border-radius: var(--radius-b);
  padding: 34px 32px;
}
.hint-card p:last-child {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
}

/* Inhaltsverzeichnis Datenschutz */
.toc-card {
  background: #FFFFFF;
  border: 1px solid var(--sage);
  border-radius: var(--radius-a);
  padding: 30px 30px 8px;
}
.toc {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--sage);
}
.toc a {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 13px 2px;
  border-bottom: 1px solid var(--sage);
  transition: color 0.2s, padding-left 0.2s;
}
.toc a:hover { color: var(--orange); padding-left: 8px; }

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
/* Sobald Inhaltsverzeichnis und Text untereinander stehen (~968px),
   waere ein mitlaufendes Inhaltsverzeichnis stoerend. */
@media (max-width: 980px) {
  .legal-aside,
  .toc-card { position: static; }
}

@media (max-width: 820px) {
  .site-header { position: relative; }
  .nav-toggle { display: flex; }

  /* Menue klappt als Panel unter den Header, statt die Kopfzeile umzubrechen */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 18px;
    background: var(--navy);
    border: 1px solid rgba(198, 215, 210, 0.25);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li + li { border-top: 1px solid rgba(198, 215, 210, 0.15); }
  .nav-links a { display: block; font-size: 16px; padding: 14px 2px; }
}

@media (max-width: 720px) {
  :root { --gutter: 24px; }

  /* Auf Mobil nur das Icon (via <picture>), damit Telefonnummer und Menue in eine Zeile passen */
  .site-header { flex-wrap: nowrap; gap: 12px; }
  .logo { flex-shrink: 0; }
  .logo img { height: 40px; width: auto; }
  .nav { flex-wrap: nowrap; gap: 10px; }

  .hero-body { padding-top: 48px; }
  .hero-media { padding-top: 48px; }
  .hero-media .media-frame { margin-bottom: -14%; }
  .hero-spacer { padding-top: 14%; margin-bottom: 64px; }

  .section { padding-top: 72px; padding-bottom: 72px; }
  .section--tight { padding-bottom: 72px; }

  .split { gap: 40px; }
  .legal { gap: 40px; padding-top: 56px; }
  .legal-main { gap: 40px; }

  .media-frame--portrait { height: 320px; }

  .cta-band .wrap { padding-top: 56px; padding-bottom: 56px; }
  .contact .wrap { padding-top: 64px; }
  .contact-grid { gap: 28px; padding-bottom: 40px; }

  .data-row { grid-template-columns: 1fr; gap: 4px; }

  .page-head .wrap { padding-top: 48px; padding-bottom: 64px; }
}

@media (max-width: 360px) {
  .btn--pill { font-size: 13px; padding: 8px 12px; }
}

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