/* ═══════════════════════════════════════════════════════════════════
   BlueStudios.work — Hauptstylesheet (Iteration 01)
   Fonts: Lato selbst gehostet (fonts/)
   Farbkonzept: Warm/Sand dominant — Blau nur für Logo, Links, Buttons
   ═══════════════════════════════════════════════════════════════════ */

/* ── Selbstgehostete Fonts ────────────────────────────────────────── */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Lato-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Lato-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/MaterialIcons-Regular.woff2') format('woff2');
}
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ── Custom Properties ────────────────────────────────────────────── */
:root {
  /* Warm/Sand — dominante Farbe */
  --primary:     #D4A373;
  --primary-dk:  #B57A4A;
  --primary-lt:  #F0DFC5;

  /* Blau — sparsam: Logo-Text, Links, Action-Buttons */
  --blue:        #00508C;
  --blue-dk:     #003a6b;

  /* Struktur */
  --footer-bg:   #3D2B1F;
  --bg:          #FAF7F2;
  --text:        #2C2422;
  --muted:       #7a6a58;
  --muted-bg:    #f5f0eb;
  --border:      #E4D5C1;
  --white:       #ffffff;
  --card-bg:     #ffffff;

  /* Alias für rückwärtskompatible Inline-Styles im HTML */
  --accent:      var(--primary);
  --green:       #4a7c59;

  --font-body:   'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   Consolas, 'Courier New', monospace;

  --radius:      8px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover:0 6px 20px rgba(0,0,0,0.14);
  --transition:  0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* iOS: kein Auto-Vergrößern von Text im Querformat → Nav-Größe bleibt konsistent */
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dk); text-decoration: underline; }

/* ── Info-Banner (quittierbar) ────────────────────────────────────── */
.info-banner {
  background: var(--primary);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  gap: 1rem;
}
.info-banner a { color: var(--blue); font-weight: 600; }
.info-banner a:hover { color: var(--blue-dk); text-decoration: none; }
.info-banner .banner-close {
  background: none; border: none; color: var(--text);
  font-size: 1.2rem; cursor: pointer; padding: 0 0.25rem; flex-shrink: 0;
  opacity: 0.6;
}
.info-banner .banner-close:hover { opacity: 1; }

/* ── Header / Navigation ─────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);          /* "blue" im Markennamen bleibt blau */
  text-decoration: none;
  letter-spacing: -0.03em;
}
.site-logo span { color: var(--primary); } /* "studios.work" warm */
.site-logo:hover { text-decoration: none; color: var(--blue); }

.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover, .site-nav a.active {
  background: var(--primary);
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--primary-dk); font-size: 1.4rem; cursor: pointer; padding: 0.25rem;
}

/* ── Accessibility ───────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { line-height: 0; }
.hero-img { width: 100%; height: auto; display: block; }

/* ── Sektionen ───────────────────────────────────────────────────── */
.section { padding: 3.5rem 1.5rem; }
.section-alt { background: var(--white); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  border-left: 4px solid var(--primary);
  padding-left: 0.75rem;
}
.section-lead {
  color: var(--muted);
  margin-bottom: 2rem;
  padding-left: 1rem;
}

/* ── Card-Grid ───────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-img {
  width: 100%; height: 180px;
  object-fit: cover;
  background: var(--border);
}
.card-img-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.card-text  { font-size: 0.9rem; color: var(--muted); flex: 1; }
.card-link  {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1px;
  transition: color var(--transition);
  text-decoration: none;
}
.card-link:hover { color: var(--blue-dk); text-decoration: none; }

/* ── Galerie ─────────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.gallery-item {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--border);
  transition: transform var(--transition);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(60,30,10,0.5); font-size: 0.75rem; gap: 0.5rem;
}

/* ── Lightbox ────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img  { max-width: 90vw; max-height: 88vh; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  color: white; font-size: 2rem; cursor: pointer; background: none; border: none;
  line-height: 1;
}

/* ── Embed-Consent ───────────────────────────────────────────────── */
.embed-placeholder {
  background: var(--primary-lt);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.embed-placeholder .embed-icon { font-size: 2rem; }
.embed-placeholder p { font-size: 0.875rem; color: var(--muted); max-width: 380px; }
.btn-consent {
  background: var(--blue); color: var(--white);
  border: none; border-radius: 4px;
  padding: 0.5rem 1.25rem; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
.btn-consent:hover { background: var(--blue-dk); }
.embed-frame { width: 100%; aspect-ratio: 16/9; border: none; border-radius: var(--radius); }

/* ── Kontaktformular ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info h3 { color: var(--text); font-size: 1.1rem; }
.contact-info p  { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.social-link {
  background: var(--primary); color: var(--text);
  padding: 0.4rem 0.9rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--primary-dk);
  transition: background var(--transition);
}
.social-link:hover { background: var(--primary-dk); color: var(--text); text-decoration: none; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-dk);
  box-shadow: 0 0 0 3px rgba(180,120,70,0.15);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.btn-submit {
  background: var(--blue); color: var(--white);
  border: none; border-radius: var(--radius);
  padding: 0.75rem 2rem; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
  width: 100%;
}
.btn-submit:hover { background: var(--blue-dk); transform: translateY(-1px); }

/* ── Über mich ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  object-fit: cover;
  flex-shrink: 0;
}
.about-text h2 { color: var(--text); font-size: 1.4rem; margin-bottom: 0.75rem; }
.about-text p  { margin-bottom: 0.75rem; }

/* ── Tags ────────────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.tag {
  background: var(--primary-lt);
  color: var(--primary-dk);
  border: 1px solid var(--primary);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ── Musik-Player ────────────────────────────────────────────────── */
.track-list { display: flex; flex-direction: column; gap: 1rem; }
.track {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.track-icon { font-size: 1.5rem; flex-shrink: 0; }
.track-info { flex: 1; }
.track-title { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.track-desc  { font-size: 0.85rem; color: var(--muted); }
.track-link  {
  font-size: 0.8rem; font-weight: 600;
  color: var(--blue); border-bottom: 2px solid var(--primary);
  text-decoration: none; flex-shrink: 0; padding-bottom: 1px;
}
.track-link:hover { color: var(--blue-dk); text-decoration: none; }

/* ── Page Header (Unterseiten) ───────────────────────────────────── */
.page-header {
  background: var(--primary);
  color: var(--text);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}
.page-header h1 { font-size: 2rem; }
.page-header p  { opacity: 0.7; margin-top: 0.5rem; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: rgba(240,220,200,0.7);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.footer-links a { color: var(--primary); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--primary-lt); text-decoration: none; }

/* ── Platzhalter-Hinweis ─────────────────────────────────────────── */
.placeholder-note {
  background: var(--primary-lt);
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--primary-dk);
  margin: 1rem 0;
}
.placeholder-note strong { color: var(--footer-bg); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 2px solid var(--primary);
    padding: 0.75rem 1rem; gap: 0.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .site-nav.open { display: flex; }
  /* sticky bleibt auch mobil (sonst gleitet der Header weg, brauner Streifen + Sticky-Verhalten verschwinden); sticky dient zugleich als Anker fürs absolute Hamburger-Dropdown */
  .site-header { position: sticky; top: 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .about-grid   { grid-template-columns: 1fr; text-align: center; }
  .about-avatar { margin: 0 auto; }
}

/* Legal nav links: only show in mobile dropdown, hidden on desktop */
.nav-legal { display: none; }
.nav-divider { display: none; }
@media (max-width: 768px) {
  .nav-divider { display: block; height: 1px; background: var(--border); margin: 0.4rem 0; }
  .nav-legal   { display: block; font-size: 0.85rem; color: var(--muted); }
}

@media (max-width: 480px) {
  .section { padding: 2.5rem 1rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ── Glossar-Tooltip (site-weit) ─────────────────────────────────── */
.gls {
  border-bottom: 1px dashed var(--muted);
  cursor: help;
  position: relative;
  white-space: nowrap;
  -webkit-touch-callout: none;   /* iOS: kein Kontextmenü beim Antippen */
  -webkit-user-select: none;     /* iOS/Safari: keine Textmarkierung beim Tippen */
  user-select: none;
}
.gls::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--footer-bg);
  color: #f0e0cc;
  padding: .4rem .75rem;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 200;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
.gls:hover::after,
.gls.gls-active::after { opacity: 1; }   /* Hover (Desktop) + Tap (Touch) */

/* ── „Über mich"-Button im Nav ──────────────────────────────────── */
.nav-uebermich {
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 0.9rem; font-family: inherit;
  padding: 0.4rem 0.75rem; border-radius: 4px;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}
.nav-uebermich:hover {
  background: var(--primary); color: var(--text);
}

/* ── Footer-Layout + IONOS-Badge ─────────────────────────────────── */
.footer-inner-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-badge {
  display: inline-flex; flex-direction: column;
  align-items: center; gap: .35rem;
  text-decoration: none; opacity: .9;
}
/* Zwischenbreiten + Mobil: Footer mittig stapeln — Badge zentriert, nie links-bündig */
@media (max-width: 900px) {
  .footer-inner-flex { flex-direction: column; align-items: center; text-align: center; }
  .footer-inner-flex .footer-links { justify-content: center; }
}


/* ── Seiten-Navigation: Sprungmarken + sticky „Auf dieser Seite"-Leiste ── */
.section[id], .hero[id], .section-title[id] { scroll-margin-top: calc(var(--header-h, 64px) + 14px); }
body.with-subnav .section[id],
body.with-subnav .section-title[id]{ scroll-margin-top: calc(var(--header-h, 64px) + var(--subnav-h, 46px) + 10px); }

.page-subnav{
  position: sticky; top: var(--header-h, 64px); z-index: 90;
  background: var(--white);
  border-bottom: 3px solid var(--primary);   /* gleiche braune Linie wie oben am Header */
}
.page-subnav-inner{
  max-width: 1100px; margin: 0 auto; padding: .5rem 1.5rem;
  display: flex; gap: .35rem; flex-wrap: wrap;
}
.page-subnav a{
  color: var(--muted); font-size: .85rem; font-weight: 600;
  padding: .35rem .7rem; border-radius: 4px; white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.page-subnav a:hover{ background: var(--bg); color: var(--text); text-decoration: none; }
.page-subnav a.active{ background: var(--primary); color: var(--text); }
@media (max-width: 768px){
  .page-subnav-inner{ flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* „nach oben"-Button */
.to-top{
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 150;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--primary); color: var(--text);
  font-size: 1.2rem; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.to-top[hidden]{ display: none; }
.to-top:hover{ transform: translateY(-2px); }
