/* =========================
   assets/css/style.css (FINISHED)
   ========================= */

:root{
  --primary:#6366f1;
  --primary-light:#818cf8;
  --secondary:#a855f7;

  --gradient-main: linear-gradient(135deg,#1e1b4b 0%,#312e81 50%,#1e1b4b 100%);
  --gradient-primary: linear-gradient(90deg, #818cf8, #a855f7);

  --text-primary:#fff;
  --text-secondary:rgba(255,255,255,.85);
  --text-muted:rgba(255,255,255,.65);

  --bg-dark:#0f0f1a;
  --bg-card:rgba(255,255,255,.06);
  --bg-card-hover:rgba(255,255,255,.09);

  --border:rgba(255,255,255,.12);
  --shadow:0 10px 30px rgba(0,0,0,.35);

  --max-width:1100px;
  --space-xs:8px;
  --space-sm:16px;
  --space-md:24px;
  --space-lg:48px;
  --space-xl:80px;

  --header-h:72px;
  --radius:16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-dark);
  overflow-x: hidden;
  padding-top: var(--header-h);

  /* font rendering */
  -webkit-font-smoothing: antialiased; /* Chrome, Safari */
  -moz-osx-font-smoothing: grayscale;  /* Firefox macOS */
}

.container{max-width:var(--max-width);margin:0 auto;padding:0 var(--space-md)}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}

/* Background */
.gradient-bg{position:fixed; inset:0; z-index:-1; background:var(--gradient-main); overflow:hidden}
.gradient-blob{position:absolute;border-radius:50%;filter:blur(100px);opacity:.4;animation: blob-float 25s ease-in-out infinite}
.blob-1{width:520px;height:520px;background:var(--primary);top:-220px;right:-140px}
.blob-2{width:420px;height:420px;background:var(--secondary);bottom:-140px;left:-140px;animation-delay:-10s}
@keyframes blob-float{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(30px,-30px) scale(1.05)}}

/* Header */
.header-enhanced{
  background: rgba(10,10,30,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top:0;left:0;right:0;
  z-index: 1000;
  height: var(--header-h);
  display:flex;
  align-items:center;
  overflow: visible;
}
.navbar{
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
  padding: 0 var(--space-md);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--space-md);
  min-width: 0;
  flex-wrap: nowrap;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex: 1 1 auto;
}
.logo-image{width:auto;height:40px;border-radius:8px}
.logo-text{
  font-weight:600;
  font-size:1.05rem;
  color:var(--text-primary);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.nav-links{display:flex;list-style:none;gap:28px;padding:0;margin:0}
.nav-link{color:rgba(255,255,255,.82);font-weight:500;font-size:.95rem;position:relative;transition:color 200ms ease}
.nav-link:hover{color:#fff}
.nav-link::after{content:'';position:absolute;left:0;bottom:-6px;width:0;height:2px;background:var(--gradient-primary);transition:width 250ms ease}
.nav-link:hover::after{width:100%}

/* Burger */
.mobile-menu-btn{
  display:none;
  width:44px;height:44px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  cursor:pointer;
  padding:10px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  flex: 0 0 auto;
  margin-left: auto;
}
.mobile-menu-btn span{
  width:22px;height:2px;background:var(--text-primary);
  border-radius:2px;
  transition:transform 180ms ease, opacity 180ms ease;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1){transform: translateY(8px) rotate(45deg)}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2){opacity:0}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3){transform: translateY(-8px) rotate(-45deg)}

/* Mobile drawer (BASE) */
.mobile-drawer{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}
.mobile-drawer.is-open{display:block}

.mobile-drawer__backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  border: none;
  padding: 0;
}

.mobile-drawer__panel{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 92vw);

  background: #0f0f1a;
  border-left: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);

  padding: 18px;
  padding-top: calc(18px + env(safe-area-inset-top));

  transform: translateX(102%);
  transition: transform 240ms ease;

  display:flex;
  flex-direction:column;
  gap:12px;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.mobile-drawer.is-open .mobile-drawer__panel{transform:translateX(0)}

.mobile-drawer__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.10);
  min-height: 56px;
}
.mobile-drawer__title{font-weight:600}

.mobile-close-btn{
  width:44px;height:44px;
  border:1px solid rgba(255, 255, 255, 0.07);
  background:rgba(255,255,255,.06);
  border-radius:12px;
  cursor:pointer;
  position:relative;
  flex: 0 0 auto;
}
.mobile-close-btn span{
  position:absolute;
  top:50%;
  left:50%;
  width:22px;
  height:2px;
  background:var(--text-primary);
  border-radius:2px;
}
.mobile-close-btn span:nth-child(1){transform:translate(-50%,-50%) rotate(45deg)}
.mobile-close-btn span:nth-child(2){transform:translate(-50%,-50%) rotate(-45deg)}

.mobile-nav-links{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}
.mobile-nav-link{
  display:block;
  padding:14px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.86);
  font-weight:500;
}
.mobile-nav-link:hover{color:#fff}

body.no-scroll{
  overflow:hidden;
  height: 100%;
}

/* Anchor offset so buttons scroll correctly with fixed header */
.anchor-target{
  position: relative;
  top: calc(-1 * var(--header-h) - 12px);
  height: 1px;
}

/* Hero */
.hero{min-height:calc(100vh - var(--header-h));display:flex;align-items:center;padding:var(--space-xl) 0;text-align:center}
.hero-content{max-width:820px;margin:0 auto}
.hero-badge{
  display:inline-block;
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--primary-light);
  background:rgba(99,102,241,.15);
  border:1px solid rgba(99,102,241,.25);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:var(--space-md)
}
.hero-title{font-size:clamp(2rem,5vw,3.4rem);line-height:1.15;margin:0 0 var(--space-md);font-weight:700}
.hero-subtitle{font-size:1.1rem;color:var(--text-secondary);margin:0 auto;max-width:680px}

/* Section headers */
.section-header{text-align:center;margin-bottom:var(--space-lg)}
.section-tag{display:inline-block;font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--primary-light);margin-bottom:10px}
.section-title{font-size:clamp(1.8rem,4vw,2.5rem);margin:0 0 10px}
.section-subtitle{color:var(--text-secondary);margin:0}

/* Features */
.features{padding:var(--space-xl) 0}
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--space-md)}
.feature-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px;
  transition:transform 200ms ease,background 200ms ease,border-color 200ms ease
}
.feature-card:hover{transform:translateY(-4px);background:var(--bg-card-hover);border-color:rgba(129,140,248,.30)}
.feature-number{color:var(--primary-light);font-weight:600;font-size:.85rem}
.feature-title{margin:10px 0 8px;font-size:1.15rem}
.feature-description{color:var(--text-secondary);margin:0}

/* About stats */
.about-stats{padding:var(--space-xl) 0}
.about-stats__grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.about-stats__text h2{margin:0 0 14px;font-size:2rem}
.about-stats__text p{margin:0 0 12px;color:var(--text-secondary)}
.about-stats__cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.stat-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;text-align:center}
.stat-value{font-size:2rem;font-weight:800}
.stat-label{color:var(--text-secondary);font-size:.95rem}

/* Posts */
.posts-section{padding:var(--space-xl) 0;background:linear-gradient(180deg,#0f0f1a 0%,#1a1a2e 50%,#16162a 100%)}
.section-header--centered{text-align:center;margin-bottom:40px}
.posts-list{display:flex;flex-direction:column;gap:24px}
.post-row{
  display:flex;
  border-radius:20px;
  overflow:hidden;
  background:rgba(25,25,50,.82);
  border:1px solid rgba(255,255,255,.08);
  transition:transform 200ms ease,box-shadow 200ms ease,border-color 200ms ease
}
.post-row:hover{transform:translateY(-3px);box-shadow:0 20px 60px rgba(0,0,0,.4);border-color:rgba(129,140,248,.25)}
.post-row--img-left{flex-direction:row}
.post-row--img-right{flex-direction:row-reverse}
.post-row--img-top{flex-direction:column}
.post-image{width:50%;min-height:240px}
.post-image--full{width:100%;height:340px}
.post-image img{width:100%;height:100%;object-fit:cover;transition:transform 500ms ease}
.post-row:hover .post-image img{transform:scale(1.04)}
.post-content{width:50%;padding:34px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.post-content--below{width:100%;padding:34px;text-align:center;max-width:820px;margin:0 auto}
.post-title{margin:0 0 12px;font-size:1.35rem}
.post-divider{width:60px;height:3px;border-radius:2px;background:linear-gradient(90deg,#a5b4fc,#c084fc);margin-bottom:16px}
.post-row--img-top .post-divider{margin-left:auto;margin-right:auto}
.post-excerpt{margin:0;color:rgba(255,255,255,.86);line-height:1.75}

/* Über uns */
.about-simple{padding:var(--space-xl) 0}
.about-simple__card{
  max-width:900px;margin:0 auto;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  padding:clamp(22px,4vw,44px);
  box-shadow:var(--shadow);
}
.about-simple__card h2{margin:0 0 14px;font-size:clamp(1.8rem,4vw,2.4rem)}
.about-simple__card p{margin:0 0 14px;color:var(--text-secondary)}
.about-simple__actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}

/* Contact */
.contact{padding:var(--space-xl) 0}
.contact__grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}
.contact__info h2{margin:0 0 10px;font-size:2rem}
.contact__info p{margin:0 0 16px;color:var(--text-secondary)}
.contact__pill{display:flex;align-items:center;gap:10px;padding:14px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);margin-bottom:12px}
.contact__formCard{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);border-radius:20px;padding:24px;box-shadow:var(--shadow)}
.booking-form{display:flex;flex-direction:column;gap:14px}
.field{display:flex;flex-direction:column;gap:8px}
.field__label{font-size:.85rem;color:rgba(255,255,255,.78)}
input,select{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.15);
  color:var(--text-primary);
  outline:none
}
input::placeholder{color:rgba(255,255,255,.55)}
input:focus,select:focus{border-color:rgba(129,140,248,.55)}
.form-status{min-height:22px;margin:2px 0 0}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:700;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform 180ms ease,box-shadow 180ms ease,background 180ms ease,border-color 180ms ease
}
.btn-primary{background:var(--gradient-primary);color:#0b1020;box-shadow:0 10px 30px rgba(99,102,241,.25)}
.btn-primary:hover{transform:translateY(-1px)}
.btn-outline{background:transparent;border-color:rgba(255,255,255,.20);color:var(--text-primary)}
.btn-outline:hover{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.06)}
.btn-block{width:100%}

/* Footer */
.footer{padding:60px 0 28px;border-top:1px solid rgba(255,255,255,.10)}
.footer-grid{display:grid;gap:28px}
@media (min-width:820px){.footer-grid{grid-template-columns:2fr 1fr}}
.footer-brand{font-weight:800;font-size:1.1rem}
.footer-tagline{color:var(--text-secondary);margin:10px 0 0}
.footer-nav h4{margin:0 0 12px;font-size:.85rem;letter-spacing:.10em;text-transform:uppercase;color:var(--text-muted)}
.footer-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.footer-nav a{color:var(--text-secondary)}
.footer-nav a:hover{color:#fff}
.footer-bottom{margin-top:26px;padding-top:18px;border-top:1px solid rgba(255,255,255,.10);text-align:center}
.footer-bottom p{margin:0;color:var(--text-muted);font-size:0.9rem}

/* =========================
   RESPONSIVE FIXES
   ========================= */

/* General mobile typography + padding */
@media (max-width: 480px){
  :root{
    --space-md: 18px;
    --space-lg: 36px;
    --space-xl: 56px;
  }
  body{font-size:15px}
  .container{padding-left:14px;padding-right:14px}
  .logo-image{height:34px}
  .logo-text{font-size:.95rem}
}

/* Show burger earlier and prevent header squeeze */
@media (max-width: 920px){
  .nav-links{display:none}
  .mobile-menu-btn{display:flex}
}

/* Services cards: adapt better on phones */
@media (max-width: 640px){
  .features{padding:56px 0}
  .features-grid{grid-template-columns: 1fr;gap: 14px}
  .feature-card{padding:18px}
  .feature-title{font-size:1.05rem}
  .feature-description{font-size:.95rem}
}

/* About stats: stack and make cards readable */
@media (max-width: 900px){
  .about-stats__grid{grid-template-columns:1fr;gap:22px}
}
@media (max-width: 640px){
  .about-stats{padding:56px 0}
  .about-stats__cards{grid-template-columns:1fr;gap:12px}
  .stat-card{padding:16px}
  .stat-value{font-size:1.8rem}
}

/* Blog posts: force mobile layout earlier so it doesn't look broken */
@media (max-width: 900px){
  .post-row--img-left,
  .post-row--img-right{flex-direction:column}
  .post-image,
  .post-content{width:100%}
  .post-image{height:220px;min-height:auto}
  .post-content{padding:22px}
}
@media (max-width: 640px){
  .posts-section{padding:56px 0}
  .post-image{height:200px}
  .post-image--full{height:220px}
  .post-title{font-size:1.2rem}
  .post-excerpt{font-size:.95rem}
}

/* Über uns: buttons full width on mobile, better spacing */
@media (max-width: 640px){
  .about-simple{padding:56px 0}
  .about-simple__card{padding:20px}
  .about-simple__actions{flex-direction:column;gap:10px}
  .about-simple__actions .btn{width:100%}
}

/* Contact: stack earlier, reduce padding */
@media (max-width: 900px){
  .contact__grid{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .contact{padding:56px 0}
  .contact__formCard{padding:18px}
  input,select{padding:12px}
}

/* =========================
   MOBILE STRUCTURE FIX v2
   ========================= */

/* Skip link hidden unless focused */
.skip-link{
  position: fixed !important;
  left: 12px !important;
  top: 10px !important;
  z-index: 99999 !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #0b1020 !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.35) !important;
  transform: translateY(-160%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.skip-link:focus,
.skip-link:focus-visible{
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  outline: 3px solid rgba(129,140,248,.65) !important;
  outline-offset: 2px !important;
}

/* Make headings wrap normally */
h1, h2, h3, .hero-title, .section-title{
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: auto;
}

/* Mobile header sizing and spacing */
@media (max-width: 768px){
  :root{
    --header-h: 64px;
    --space-xl: 48px;
    --space-lg: 28px;
    --space-md: 16px;
  }

  body{padding-top: var(--header-h)}
  .header-enhanced{height: var(--header-h)}

  .navbar{
    height: var(--header-h);
    padding-left: 12px;
    padding-right: 12px;
    gap: 12px;
  }

  .logo-image{ height: 32px; }
  .logo-text{
    font-size: .92rem;
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-menu-btn{
    width: 40px;
    height: 40px;
    padding: 8px;
  }
}

/* Hero improvements on mobile */
@media (max-width: 768px){
  .hero{
    min-height: auto;
    padding: 40px 0 26px;
    text-align: left;
  }
  .hero-content{max-width: 100%}
  .hero-badge{margin-bottom: 14px}
  .hero-title{
    font-size: 1.85rem;
    line-height: 1.15;
    margin-bottom: 12px;
  }
  .hero-subtitle{
    font-size: .98rem;
    line-height: 1.75;
    max-width: 100%;
  }
}

/* About stats rhythm */
@media (max-width: 768px){
  .about-stats{padding: 42px 0}
  .about-stats__grid{gap: 18px}
  .about-stats__text h2{
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .about-stats__text p{font-size: .98rem;line-height: 1.75}
  .about-stats__cards{grid-template-columns: 1fr;gap: 12px}
  .stat-card{padding: 16px}
  .stat-value{font-size: 1.75rem}
}

/* Sections spacing */
@media (max-width: 768px){
  .features,
  .posts-section,
  .about-simple,
  .contact{padding: 48px 0}

  .section-header{margin-bottom: 22px;text-align: left}
  .section-title{
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .section-subtitle{
    font-size: .98rem;
    margin: 0;
    max-width: 100%;
  }
}

/* Mobile posts cards */
@media (max-width: 768px){
  .posts-list{ gap: 16px; }
  .post-row{ border-radius: 18px; }
  .post-image{ height: 190px; }
  .post-content{ padding: 18px; }
  .post-title{ font-size: 1.12rem; line-height: 1.25; }
  .post-excerpt{ font-size: .95rem; }
}

/* Über uns buttons full width */
@media (max-width: 768px){
  .about-simple__card{padding: 18px}
  .about-simple__actions{flex-direction: column;gap: 10px}
  .about-simple__actions .btn{width: 100%}
}

/* Safety: prevent unwanted horizontal scroll */
*{ max-width: 100%; }
body{ overflow-x: hidden; }
