/* ============================================
   sued – Brand Website
   Based on Brand Style Guide August 2026
   ============================================ */

:root {
  /* Brand Colors */
  --base-white: #F6F6EB;
  --bergstein: #B6B19E;
  --himmelblau: #ACBCD4;
  --sonnenorange: #E79362;
  --sued-schwarz: #202020;

  /* Semantic */
  --bg-dark: var(--sued-schwarz);
  --bg-light: var(--base-white);
  --text-dark: var(--sued-schwarz);
  --text-light: var(--base-white);
  --accent: var(--sonnenorange);
  --accent-soft: var(--himmelblau);
  --muted: var(--bergstein);

  /* Typography */
  --font-brand: "WDXL Lubrifont SC", system-ui, sans-serif;

  /* Spacing & Layout */
  --max-width: 1440px;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Font Faces */
@font-face {
  font-family: "WDXL Lubrifont SC";
  src: url("../fonts/WDXLLubrifontSC-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-brand);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

/* Utility */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========== HEADER / NAV ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(32, 32, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(246, 246, 235, 0.08);
  transition: background 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--base-white);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sonnenorange);
  opacity: 1;
}

.nav-cta {
  background: var(--sonnenorange);
  color: var(--sued-schwarz) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: #f0a57a;
  color: var(--sued-schwarz) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--base-white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 6rem 0 4rem;
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-logo {
  margin: 0 auto 1.75rem;
  width: min(380px, 70vw);
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--base-white);
}

.hero-text {
  font-size: 1.05rem;
  color: var(--bergstein);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Booking Widget Card */
.booking-card {
  background: var(--base-white);
  color: var(--sued-schwarz);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
  osition: relative;
  z-index: 50;
}

.booking-card h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--sued-schwarz);
  text-align: center;
}

.booking-card .guesty-widget-wrapper {
  min-height: 80px;
}

/* Override possible Guesty styles for better fit + brand font */
#search-widget_IO312PWQ {
  width: 100%;
  position: relative;
  z-index: 50;
}

#search-widget_IO312PWQ,
#search-widget_IO312PWQ *,
#search-widget_IO312PWQ input,
#search-widget_IO312PWQ button,
#search-widget_IO312PWQ select,
#search-widget_IO312PWQ label,
#search-widget_IO312PWQ span,
#search-widget_IO312PWQ div {
  font-family: "WDXL Lubrifont SC", system-ui, -apple-system, sans-serif !important;
}

/* Guesty-Kalender / Dropdowns sollen über dem nächsten Abschnitt liegen */
#search-widget_IO312PWQ [class*="calendar"],
#search-widget_IO312PWQ [class*="datepicker"],
#search-widget_IO312PWQ [class*="popup"],
#search-widget_IO312PWQ [class*="dropdown"],
#search-widget_IO312PWQ [class*="popover"],
body > [class*="guesty"],
body > [id*="guesty"] {
  z-index: 9999 !important;
}

/* ========== SECTIONS ========== */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--sonnenorange);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-header p {
  color: var(--bergstein);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.25rem;
}

.feature-card {
  background: rgba(246, 246, 235, 0.04);
  border: 1px solid rgba(246, 246, 235, 0.08);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 147, 98, 0.4);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--base-white);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--bergstein);
  line-height: 1.6;
}

/* Brand Statement */
.brand-statement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.brand-statement-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.brand-statement-text p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.brand-statement-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--sued-schwarz);
}

.brand-statement-visual img.pattern {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-statement-visual .overlay-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-statement-visual .overlay-logo img {
  width: 40%;
  max-width: 180px;
  opacity: 0.9;
}

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--sued-schwarz) 0%, #2a2a2a 100%);
  color: var(--text-light);
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/Web_sued_Karomuster_300_1.jpg");
  background-size: 100px;
  opacity: 0.06;
}

.cta-band .container {
  position: relative;
  z-index: 2;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--bergstein);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-family: var(--font-brand);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--sonnenorange);
  color: var(--sued-schwarz);
}

.btn-primary:hover {
  background: #f0a57a;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--base-white);
  color: var(--base-white);
}

.btn-outline:hover {
  background: var(--base-white);
  color: var(--sued-schwarz);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--sued-schwarz);
  color: var(--bergstein);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-nav h4,
.footer-legal h4 {
  color: var(--base-white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.footer-nav a,
.footer-legal a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--sonnenorange);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(246, 246, 235, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom .claim {
  color: var(--sonnenorange);
}

/* ========== LEGAL PAGES ========== */
.legal-page {
  padding: 8rem 0 4rem;
  min-height: 70vh;
}

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--sued-schwarz);
}

.legal-page h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--sued-schwarz);
}

.legal-page p,
.legal-page li {
  margin-bottom: 0.75rem;
  color: #444;
  max-width: 720px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-note {
  background: #f0efe6;
  border-left: 4px solid var(--sonnenorange);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: 0 8px 8px 0;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sued-schwarz);
  color: var(--base-white);
  padding: 1.25rem 1.5rem;
  z-index: 2000;
  display: none;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.9rem;
  flex: 1;
  min-width: 240px;
  color: var(--bergstein);
}

.cookie-banner a {
  color: var(--sonnenorange);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-actions button {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-brand);
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
}

.btn-accept {
  background: var(--sonnenorange);
  color: var(--sued-schwarz);
}

.btn-decline {
  background: transparent;
  border: 1px solid var(--bergstein) !important;
  color: var(--base-white);
}

/* ========== RESPONSIVE ========== */
@media (min-width: 1440px) {
  .container {
    padding: 0 2.5rem;
  }
}

@media (max-width: 900px) {
  .brand-statement {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--sued-schwarz);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(246,246,235,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 5.5rem;
    min-height: auto;
    padding-bottom: 3rem;
  }

  .booking-card {
    padding: 1.25rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 220px;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* Links in Rechtstexten erkennbar machen */
.legal-page a { text-decoration: underline; }
