/*
Theme Name: Dessert Booking
Version: 2.1.0
Text Domain: dessert-booking

=========================================
WAS IST DAS HIER?
- Das ist die Haupt-CSS Datei deines WordPress Themes.
- Alles was hier steht bestimmt, wie deine Website aussieht:
  Schrift, Abstände, Farben, Layout (Grid), Buttons etc.
=========================================
*/

/* =========================================
   1) GLOBAL RESET / BASIS
   - sorgt dafür, dass Größenberechnung überall gleich ist
   - verhindert "komische" Abstände durch Browser Defaults
========================================= */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:#111;
  background:#fff;
  line-height:1.6
}

/* =========================================
   2) CSS VARIABLEN (Design System)
   - zentrale Farben & Größen
   - Vorteil: du änderst z.B. radius einmal und überall wird’s runder
========================================= */
:root{
  --black:#000;
  --white:#fff;
  --gray-100:#fafafa;
  --gray-200:#f2f2f2;
  --gray-300:#e6e6e6;
  --gray-500:#777;

  /* Rundungen */
  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:16px;

  /* leichter Schatten für Karten (wenn du ihn nutzen willst) */
  --shadow-soft:0 6px 20px rgba(0,0,0,.06);
}

/* =========================================
   3) CONTAINER
   - begrenzt die Breite (sonst wird’s ultra breit auf großen Screens)
   - 1200px Max, aber auf kleinen Screens 92% Breite
========================================= */
.container{width:min(1200px,92%);margin:0 auto}

/* =========================================
   4) TOPBAR (ganz oben)
   - schwarze Leiste oben mit Utility Menü
========================================= */
.topbar{
  background:#111;
  color:#fff;
  font-size:13px
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height:36px;
  padding:6px 0
}
.utility-nav a{
  color:#fff;
  opacity:.9;
  padding:4px 8px;
  text-decoration:none
}
.utility-nav a:hover{
  text-decoration:underline;
  opacity:1
}
.menu.small{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:12px
}

/* =========================================
   5) HEADER (Logo + Menü)
   - schwarzer Header
   - enthält Brand links und Hauptmenü rechts
========================================= */
.site-header{
  background:#000;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,0.08)
}
.site-header .inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:72px;
  padding:16px 0
}

/* Branding (Site Titel + Tagline) */
.site-branding{
  display:flex;
  flex-direction:column;
  line-height:1.1
}
.site-title a{
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:20px;
  letter-spacing:.08em;
  text-transform:uppercase
}
.site-title a:hover{opacity:.85}
.site-tagline{
  margin-top:4px;
  font-size:13px;
  color:#aaa;
  letter-spacing:.02em
}

/* =========================================
   6) PRIMARY NAVIGATION (Hauptmenü)
   - Menü rechts im Header
   - Underline Effekt bei Hover & aktive Seite
========================================= */
.site-nav .menu{
  display:flex;
  gap:24px;
  list-style:none;
  margin:0;
  padding:0;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap
}
.site-nav .menu > li{margin:0;float:none}
.site-nav .menu a{
  display:block;
  padding:8px 12px;
  color:#fff;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.12em;
  position:relative;
  transition:opacity .2s ease
}
.site-nav .menu a:hover{opacity:.75}

/* Underline Linie unter Menüpunkt */
.site-nav .menu a::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:2px;
  height:1px;
  background:#fff;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .25s ease
}
.site-nav .menu a:hover::after,
.site-nav .menu li.current-menu-item > a::after{
  transform:scaleX(1)
}

/* =========================================
   7) FOOTER
   - schwarzer Footer mit Text
========================================= */
.site-footer{
  background:#000;
  color:#fff;
  padding:24px 0;
  margin-top:48px
}

/* =========================================
   8) LAYOUT HELPERS (Grid)
   - Hilfsklassen um Kacheln/Layouts zu bauen
========================================= */
.grid{display:grid;gap:24px}
.grid-3{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}

.hero{padding:48px 0 16px;border-bottom:1px solid var(--gray-300)}
.section{padding:32px 0}
.rule{border:0;border-top:1px solid #111;margin:16px 0 0}

/* =========================================
   9) CARDS (Kacheln)
   - Standard Boxen mit Bild + Text
========================================= */
.card{
  border:1px solid var(--gray-300);
  border-radius:var(--radius-md);
  overflow:hidden;
  background:#fff
}
.card .media img{
  width:100%;
  height:260px;
  object-fit:cover;
  display:block
}
.card .content{padding:16px}

/* =========================================
   10) BUTTONS
   - Standard Button (schwarz/weiß)
   - Hover hebt minimal an
========================================= */
.button{
  display:inline-block;
  border:1px solid #000;
  padding:10px 14px;
  border-radius:var(--radius-sm);
  text-decoration:none;
  color:#000;
  font-weight:600;
  transition:transform .15s ease, opacity .15s ease, background .15s ease, color .15s ease
}
.button.primary{background:#000;color:#fff}
.button:hover{background:#000;color:#fff;transform:translateY(-1px)}
.button:active{transform:translateY(0)}

/* =========================================
   11) BLUR-UP IMAGES
   - Bilder laden zuerst verschwommen (blur)
   - dann wird blur entfernt wenn JS die Klasse "loaded" setzt
========================================= */
img.blur-up{filter:blur(12px);transform:translateZ(0);transition:filter .32s ease}
img.blur-up.loaded{filter:blur(0)}

/* =========================================
   12) ARTIST PAGE (Single Artist)
   - Hero Layout: Bild links, Text rechts
========================================= */
.artist-hero{padding:40px 0;border-bottom:1px solid var(--gray-300)}
.hero-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:32px;
  align-items:center
}
.hero-media{width:100%;max-width:465px;aspect-ratio:465/618}
.hero-media img{
  width:100%;
  height:100%;
  max-width:465px;
  max-height:618px;
  object-fit:cover;
  object-position:center;
  border-radius:var(--radius-lg)
}
.artist-name{font-size:clamp(32px,4.5vw,64px);margin:0 0 12px}
.artist-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}

/* Kleine Tags / Pills unter dem Namen */
.pill{padding:6px 10px;border-radius:999px;border:1px solid #000;font-size:14px}

/* Social Links (Instagram, RA, Spotify...) */
.artist-socials{display:flex;gap:14px;font-weight:600;flex-wrap:wrap}
.artist-socials a{
  color:#000;
  text-decoration:none;
  border-bottom:1px solid #000
}
.artist-socials a:hover{opacity:.75}

/* Content Layout: links Content, rechts Sidebar (falls vorhanden) */
.body-grid{display:grid;grid-template-columns:1.4fr .6fr;gap:32px}
.col-aside{position:sticky;top:24px;align-self:start;height:fit-content}
.aside-card{
  border:1px solid var(--gray-300);
  border-radius:var(--radius-md);
  padding:16px;
  margin-bottom:16px
}

.artist-textblock{line-height:1.7}
.artist-textblock h2,
.artist-textblock h3{
  margin:12px 0 6px;
  line-height:1.2
}
.artist-textblock ul,
.artist-textblock ol{
  margin:10px 0 10px 20px
}
.artist-textblock a{text-decoration:underline}

/* Editable hero block (front page) */
.hero-editable :where(h1,h2,h3){margin:0 0 8px;line-height:1.1}
.hero-editable p{margin:0;color:#666;font-size:1.1rem}
.hero-editable .wp-block{max-width:100%}

/* =========================================
   13) BOOKING BLOCK (wichtig)
   Ziel:
   - Label in Zeile 1 (BOOKING)
   - Mail in Zeile 2
   - Press Kit / Tech Rider in Zeile 3 nebeneinander
   - Links wie RA (Underline)
========================================= */

/* allgemeine Actions-Klasse (fallback) */
.artist-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0
}

/* Booking immer gestapelt untereinander */
.artist-actions.booking-email{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:6px !important;
  margin:18px 0 !important;
}

/* Zeile 1: "Booking" Label */
.artist-actions.booking-email .booking-label{
  font-weight:700;
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#666;
}

/* Zeile 2: Mail */
.artist-actions.booking-email .booking-mail{
  display:block !important;
  font-weight:700;
  font-size:16px;
  color:#000;
  text-decoration:none;
  border-bottom:1px solid #000;
  width:fit-content;
}
.artist-actions.booking-email .booking-mail:hover{opacity:.75}

/* Zeile 3: Asset Links nebeneinander */
.artist-actions.booking-email .booking-assets{
  display:flex !important;
  gap:14px !important;
  flex-wrap:wrap !important;
  width:100% !important;
  margin-top:10px !important;
}

/* Press Kit / Tech Rider Links */
.artist-actions.booking-email .asset-link{
  font-weight:600;
  color:#000;
  text-decoration:none;
  border-bottom:1px solid #000;
  width:fit-content;
}
.artist-actions.booking-email .asset-link:hover{opacity:.75}

/* =========================================
   14) FULLSCREEN GOOGLE FORM
   - falls du eine Seite hast wo ein Google Form iframe full height sein soll
========================================= */
.form-fullscreen{
  width:100vw;
  height:calc(100vh - var(--header-height, 0px));
}
.form-fullscreen iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* =========================================
   15) GIGS TABLE (Artist)
   - Tabelle Desktop
   - auf Mobile werden daraus "Cards"
========================================= */
.dates-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:14px 0 28px;
  background:#fff;
  border:1px solid var(--gray-300);
  border-radius:14px;
  overflow:hidden;
}
.dates-table thead th{
  text-align:left;
  font-size:13px;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#666;
  padding:12px 14px;
  background:var(--gray-100);
  border-bottom:1px solid var(--gray-300);
}
.dates-table tbody td{
  padding:12px 14px;
  border-bottom:1px solid var(--gray-300);
  vertical-align:top;
}
.dates-table tbody tr:last-child td{border-bottom:0}
.dates-table tbody tr:hover{background:#fcfcfc}

/* Link Button in Tabelle */
.dates-table a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid var(--gray-300);
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  transition:transform .15s ease, background .15s ease
}
.dates-table a:hover{transform:translateY(-1px);background:var(--gray-100)}

/* Mobile: Tabelle wird zu Karten */
@media (max-width: 720px){
  .dates-table thead{display:none}
  .dates-table, .dates-table tbody, .dates-table tr, .dates-table td{display:block;width:100%}
  .dates-table{border-radius:16px}
  .dates-table tr{padding:10px 12px;border-bottom:1px solid var(--gray-300)}
  .dates-table tr:last-child{border-bottom:0}
  .dates-table td{
    border:0;
    padding:8px 0;
    display:flex;
    justify-content:space-between;
    gap:16px;
  }
  .dates-table td::before{
    content:attr(data-label);
    font-weight:800;
    color:var(--gray-500);
    flex:0 0 40%;
  }
  .dates-table td[data-label="Link"]{justify-content:flex-start}
}

/* =========================================
   16) MIX SERIES (Grid + Detail)
   - Übersicht: Grid mit Covern
   - Detail: Bild links, Content rechts
========================================= */
.mix-grid{margin:22px 0 0}

.mix-grid-inner{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:32px;
}

.mix-card{
  margin:0;
  display:flex;
  flex-direction:column;
}
.mix-card a{
  display:block;
  text-decoration:none;
  color:inherit;
}
.mix-card img{
  width:50%;
  height:50%;
  display:block;
  object-fit:cover;
}
.mix-thumb-placeholder{
  width:50%;
  padding-top:50%;
  background:#eee;
}

.mix-card-title{
  margin:12px 0 0;
  font-size:18px;
  font-weight:800;
  text-transform:uppercase;
  text-underline-offset:4px;
}

.mix-card a:hover img{opacity:.9;transition:opacity .2s ease}

/* Mix Detail Layout */
.mix-detail{
  display:grid;
  grid-template-columns:minmax(280px, 520px) minmax(0, 1fr);
  gap:48px;
  align-items:start;
  margin-top:18px;
}
.mix-hero{margin:0}
.mix-hero-img{width:100%;height:auto;display:block}
.mix-soundcloud{margin-top:14px}
.mix-soundcloud iframe{width:100% !important;max-width:100%}
.mix-content h2{margin-top:0}
.mix-content ol{padding-left:18px}
.mix-content li{margin-bottom:12px}
.mix-content strong{font-weight:800}

/* Responsive Mix-Series Grid */
@media (max-width: 500px){
  .mix-grid-inner{grid-template-columns:repeat(3, minmax(0, 1fr))}
}
@media (max-width: 500px){
  .mix-grid-inner{grid-template-columns:repeat(2, minmax(0, 1fr));gap:24px}
  .mix-detail{grid-template-columns:1fr;gap:26px}
}
@media (max-width: 500px){
  .mix-grid-inner{grid-template-columns:1fr;gap:18px}
}

/* =========================================
   17) MIX DETAIL – MOBILE IMAGE FIX
   - verhindert riesige Bilder auf Mobile
========================================= */
.mix-detail img,
.single-mix img,
.page-template-template-mix-detail img{
  max-width:100%;
  height:auto;
  display:block;
}

@media (max-width: 768px){
  .mix-detail .hero,
  .mix-detail .cover,
  .mix-detail .mix-hero,
  .page-template-template-mix-detail .hero,
  .page-template-template-mix-detail .cover,
  .page-template-template-mix-detail .mix-hero{
    width:100%;
    max-height:52vh;
    overflow:hidden;
    border-radius:var(--radius-lg);
  }

  .mix-detail .hero img,
  .mix-detail .cover img,
  .mix-detail .mix-hero img,
  .page-template-template-mix-detail .hero img,
  .page-template-template-mix-detail .cover img,
  .page-template-template-mix-detail .mix-hero img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
  }

  .mix-detail img[width],
  .page-template-template-mix-detail img[width]{
    width:100% !important;
  }
}

/* =========================================
   18) RESPONSIVE HEADER / LAYOUT
   - bei <=900px wird Header gestapelt
========================================= */
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .body-grid{grid-template-columns:1fr}
  .col-aside{position:static}
  .hero-media{max-width:100%;aspect-ratio:465/618}
  .hero-media img{max-width:100%;max-height:none}

  .site-header .inner{
    flex-direction:column;
    align-items:flex-start;
    gap:12px
  }
  .site-nav .menu{
    justify-content:flex-start;
    gap:14px
  }
}

@media (max-width:480px){
  .site-title a{font-size:18px}
  .site-tagline{font-size:12px}
}
/* Booking block – final spacing & clarity */
.artist-actions.booking-email .booking-line{
  width:100%;
}

.artist-actions.booking-email .booking-line--label{
  margin-bottom:2px;
}

.artist-actions.booking-email .booking-line--mail{
  margin-bottom:10px;
}

.artist-actions.booking-email .booking-line--assets{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
/* Booking Mail: KEIN Unterstrich */
.artist-actions.booking-email .booking-mail{
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Optional: dezente Hover-Rückmeldung */
.artist-actions.booking-email .booking-mail:hover{
  opacity: .7;
}
