/*
Theme Name: Design Lab
Theme URI: https://github.com/
Author: Design Lab
Description: Individuelles WordPress-Theme fuer den Design Lab Equipment-Verleih (Kamera-, Licht- und Tontechnik). Layout/Typografie im Stil von hsrw.org, Grün als eigene Studio-Leitfarbe (Greenscreen-Bezug).
Version: 1.9
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: av-studio
*/

/* ===========================================================
   Design Lab – Stylesheet
   Layout-Vorbild: hsrw.org (Hochschule Rhein-Waal)
   Utility-Topbar -> Hauptnav -> Hero -> Content-Grid -> Sidebar -> Footer
   =========================================================== */

:root{
  /* Design Lab – eigene Studio-Leitfarbe: Grün (Greenscreen-Bezug), angelehnt
     an die Bildsprache/Typografie von hsrw.org, aber mit deutlich mehr Farbe
     als die reine HSRW-Blau-Palette. HSRW-Blau bleibt als Zweitakzent
     (z.B. Kategorie "Ton") erhalten, um den Bezug zur Hochschule zu wahren. */
  --brand-dark:#0f3d27;    /* Dunkelgrün – Topbar, Footer, Hero-Verlauf, Überschriften */
  --brand:#1a7a43;         /* Hauptgrün – Buttons, Links, aktive Zustände */
  --brand-light:#3fc47f;   /* Helles Grün – Verlauf/Hover/Akzente */
  --brand-light-2:#0e5c30; /* Dunkleres Grün – Hover auf Hauptgrün */
  --brand-pale:#e3f6ea;    /* helle Grün-Tönung für Flächen/Badges */
  --accent-blue:#3973b9;   /* HSRW Mittelblau – Zweitakzent (Kategorie „Ton") */
  --accent-teal:#0e7c86;   /* Zweitakzent (Kategorie „Objektive") */
  --accent-amber:#c47a1f;  /* Zweitakzent (Kategorie „Licht") */
  --accent-plum:#6b4c9a;   /* Zweitakzent (Kategorie „Stative & Zubehör") */
  --grey-900:#101828;
  --grey-700:#4a4a4a;
  --grey-400:#878787;
  --grey-200:#e2e2e2;
  --grey-100:#f4f5f2;
  --white:#ffffff;
  --orange:#c4531f;        /* Statusfarbe "wenig verfügbar" */
  --radius:4px;
  --maxw:1180px;
  --shadow:0 1px 3px rgba(0,0,0,.12);
  --shadow-lg:0 6px 24px rgba(0,0,0,.15);
  font-size:16px;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:Arial,Helvetica,sans-serif; /* HSRW-Ersatzschrift laut CD (Hausschrift FF DIN ist lizenzpflichtig) */
  font-size:1.0625rem; /* 17px, wie hsrw.org */
  color:var(--grey-900);
  background:var(--white);
  line-height:1.5;
}
img{max-width:100%;display:block;}
a{color:var(--brand);text-decoration:none;} /* Grün = eigene Akzentfarbe für Textauszeichnungen */
a:hover{text-decoration:underline;}
ul{list-style:none;margin:0;padding:0;}
/* Schriftgrößen-Skala wie hsrw.org (H1 52px / H2 44px / H3 36px auf Desktop),
   per clamp() responsiv auf Mobilgeräten herunterskaliert. */
h1,h2,h3,h4{font-weight:700;line-height:1.25;margin:0 0 .5em;color:var(--grey-900);}
h1{font-size:clamp(2.25rem, 1.3rem + 3.5vw, 3.25rem);}
h2{font-size:clamp(1.85rem, 1.1rem + 2.8vw, 2.75rem);}
h3{font-size:clamp(1.55rem, 1rem + 2vw, 2.25rem);}
h4{font-size:1.5rem;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px;}
.skip-link{position:absolute;left:-999px;top:0;}
.skip-link:focus{left:8px;top:8px;background:#fff;padding:8px;z-index:999;}

/* ---------- Topbar (utility menu) ---------- */
.topbar{background:var(--brand-dark);color:#fff;font-size:.82rem;}
.topbar .container{display:flex;justify-content:flex-end;align-items:center;height:34px;}
.topbar-right{display:flex;align-items:center;gap:18px;}
.topbar-right a{color:#dce9d3;}
.topbar-right a:hover{color:#fff;}
.lang-switch{display:flex;gap:6px;}
.lang-switch button{
  background:none;border:none;color:#dce9d3;font-size:.82rem;cursor:pointer;padding:2px 6px;border-radius:3px;
}
.lang-switch button.active{background:var(--brand-light);color:var(--brand-dark);font-weight:700;}

/* ---------- Header / main nav ---------- */
.site-header{border-bottom:1px solid var(--grey-200);}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 20px;max-width:var(--maxw);margin:0 auto;gap:20px;
}
.logo{display:flex;align-items:center;gap:16px;color:var(--brand-dark);}
.logo-hsrw-full{height:62px;width:auto;flex-shrink:0;}
.logo-divider{width:1px;align-self:stretch;background:var(--grey-200);}
.logo-dl-mark{width:34px;height:34px;flex-shrink:0;color:var(--brand-dark);}
.logo-word{display:flex;flex-direction:column;line-height:1.15;}
.logo-word-main{font-weight:700;font-size:1.35rem;color:var(--grey-900);}
.logo-word-sub{font-size:.72rem;color:var(--grey-700);}
.main-nav ul{display:flex;gap:6px;flex-wrap:wrap;}
.main-nav a{
  display:block;padding:10px 14px;border-radius:var(--radius);
  color:var(--grey-900);font-weight:600;font-size:.95rem;
}
.main-nav a:hover,.main-nav a.active{background:var(--brand-pale);color:var(--brand-dark);text-decoration:none;}
.header-cta{display:flex;align-items:center;gap:12px;}
.btn-cart{
  position:relative;display:inline-flex;align-items:center;gap:6px;
  background:var(--brand);color:#fff;padding:9px 16px;border-radius:999px;font-weight:600;font-size:.9rem;
}
.btn-cart:hover{background:var(--brand-dark);color:#fff;text-decoration:none;}
.cart-badge{
  background:var(--orange);color:#fff;font-size:.72rem;font-weight:700;
  border-radius:999px;min-width:18px;height:18px;display:inline-flex;
  align-items:center;justify-content:center;padding:0 4px;
}
.nav-toggle{display:none;background:none;border:none;font-size:1.4rem;cursor:pointer;}

@media (max-width:860px){
  .main-nav{
    position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--grey-200);
    display:none;box-shadow:var(--shadow-lg);
  }
  .main-nav.open{display:block;}
  .main-nav ul{flex-direction:column;padding:10px;}
  .nav-toggle{display:block;}
  .site-header{position:relative;}
  .logo-hsrw-full{height:44px;}
  .logo-dl-mark{width:28px;height:28px;}
  .logo-word-main{font-size:1.1rem;}
}

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(120deg,var(--brand-dark) 0%,var(--brand) 60%,var(--brand-light) 100%);
  color:#fff;padding:64px 0 76px;position:relative;overflow:hidden;
}
.hero .container{position:relative;z-index:1;}
.hero h1{color:#fff;max-width:640px;}
.hero p{max-width:560px;font-size:1.1875rem;opacity:.95;}
.hero-actions{display:flex;gap:14px;margin-top:24px;flex-wrap:wrap;}
.btn{
  display:inline-block;padding:12px 22px;border-radius:999px;font-weight:700;
  font-size:.95rem;cursor:pointer;border:2px solid transparent;
}
.btn-primary{background:#fff;color:var(--brand-dark);}
.btn-primary:hover{background:var(--grey-100);text-decoration:none;}
.btn-outline{border-color:#fff;color:#fff;background:transparent;}
.btn-outline:hover{background:rgba(255,255,255,.15);text-decoration:none;color:#fff;}
.hero-shape{
  position:absolute;right:-80px;top:-80px;width:420px;height:420px;border-radius:50%;
  background:rgba(255,255,255,.08);
}

/* ---------- Quicklinks ---------- */
.quicklinks{background:var(--grey-100);padding:26px 0;border-bottom:1px solid var(--grey-200);}
.quicklinks .container{display:flex;flex-wrap:wrap;gap:10px;}
.quicklinks a{
  background:#fff;border:1px solid var(--grey-200);padding:8px 14px;border-radius:999px;
  font-size:.85rem;font-weight:600;color:var(--brand-dark);
}
.quicklinks a:hover{background:var(--brand-pale);text-decoration:none;}

/* ---------- Category tiles ---------- */
.section{padding:52px 0;}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:26px;flex-wrap:wrap;gap:10px;}
.section-head p{color:var(--grey-700);margin:0;}
.tile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px;}
.tile{
  background:#fff;border:1px solid var(--grey-200);border-radius:var(--radius);
  padding:22px;text-align:left;transition:box-shadow .15s,transform .15s;
}
.tile:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px);text-decoration:none;}
.tile .tile-icon{
  width:46px;height:46px;border-radius:10px;background:var(--brand-pale);
  display:flex;align-items:center;justify-content:center;margin-bottom:14px;color:var(--brand-dark);
}
.tile h3{font-size:1.05rem;margin-bottom:4px;}
.tile p{color:var(--grey-700);font-size:.88rem;margin:0;}

/* Kategorie-Akzentfarben – für mehr Farbigkeit im Kategorien-Grid, jede
   Geräteklasse bekommt ihren eigenen Ton statt überall derselben Farbe. */
.tile-icon--kamera{background:var(--brand-pale);color:var(--brand-dark);}
.tile-icon--objektiv{background:color-mix(in srgb, var(--accent-teal) 14%, white);color:var(--accent-teal);}
.tile-icon--licht{background:color-mix(in srgb, var(--accent-amber) 16%, white);color:var(--accent-amber);}
.tile-icon--ton{background:color-mix(in srgb, var(--accent-blue) 14%, white);color:var(--accent-blue);}
.tile-icon--zubehoer{background:color-mix(in srgb, var(--accent-plum) 14%, white);color:var(--accent-plum);}

/* ---------- Layout with sidebar (content + aside) ---------- */
.layout{display:grid;grid-template-columns:1fr 300px;gap:34px;align-items:start;}
@media (max-width:900px){.layout{grid-template-columns:1fr;}}

.news-card{
  display:grid;grid-template-columns:120px 1fr;gap:16px;padding:18px 0;border-bottom:1px solid var(--grey-200);
}
.news-card:first-child{padding-top:0;}
.news-date{font-size:.8rem;color:var(--grey-400);font-weight:700;}
.news-thumb{
  width:120px;height:80px;border-radius:var(--radius);background:var(--brand-pale);
  display:flex;align-items:center;justify-content:center;color:var(--brand);
}
.news-card h3{font-size:1rem;margin-bottom:4px;}
.news-card p{font-size:.88rem;color:var(--grey-700);margin:0;}

.aside-row{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
@media (max-width:700px){.aside-row{grid-template-columns:1fr;}}
.aside-box{
  background:var(--grey-100);border:1px solid var(--grey-200);border-radius:var(--radius);
  padding:18px;margin-bottom:16px;
}
.aside-box h4{font-size:.95rem;text-transform:uppercase;letter-spacing:.03em;color:var(--grey-700);margin-bottom:12px;}
.aside-box .btn-block{display:block;width:100%;text-align:center;margin-bottom:8px;background:var(--brand);color:#fff;}
.aside-box .btn-block:hover{background:var(--brand-dark);color:#fff;}
.aside-box .btn-block.outline{background:#fff;border:1px solid var(--brand);color:var(--brand-dark);}

/* ---------- Filters + catalog grid ---------- */
.filter-bar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px;}
.filter-chip{
  background:#fff;border:1px solid var(--grey-200);padding:8px 16px;border-radius:999px;
  font-size:.85rem;font-weight:600;cursor:pointer;color:var(--grey-700);
}
.filter-chip:hover{border-color:var(--brand);}
.filter-chip.active{background:var(--brand);border-color:var(--brand);color:#fff;}

.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px;}
.equip-card{
  border:1px solid var(--grey-200);border-radius:var(--radius);overflow:hidden;background:#fff;
  display:flex;flex-direction:column;transition:box-shadow .15s;
}
.equip-card:hover{box-shadow:var(--shadow-lg);}
.equip-thumb{
  aspect-ratio:1/1;background:linear-gradient(135deg,var(--brand-pale),#fff);
  display:flex;align-items:center;justify-content:center;color:var(--brand);
  overflow:hidden;position:relative;
}
.equip-thumb img{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;}
.equip-body{padding:16px;display:flex;flex-direction:column;flex:1;gap:8px;}
.equip-cat{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:var(--brand);font-weight:700;}
.equip-body h3{font-size:1.02rem;margin:0;}
.equip-desc{font-size:.85rem;color:var(--grey-700);flex:1;margin:0;}
.equip-meta{display:flex;justify-content:space-between;align-items:center;font-size:.82rem;color:var(--grey-700);}
.stock{font-weight:700;}
.stock.ok{color:var(--brand);}
.stock.low{color:var(--orange);}
.stock.none{color:#b23b3b;}
.equip-actions{display:flex;gap:8px;padding:0 16px 16px;}
.equip-actions .btn{flex:1;text-align:center;font-size:.85rem;padding:9px 10px;}
.btn-add{background:var(--brand);color:#fff;border:none;}
.btn-add:hover{background:var(--brand-dark);}
.btn-add:disabled{background:var(--grey-400);cursor:not-allowed;}
.btn-ghost{background:#fff;border:1px solid var(--grey-200);color:var(--grey-900);}
.btn-ghost:hover{border-color:var(--brand);text-decoration:none;}

/* ---------- Product detail ---------- */
.product-hero{display:grid;grid-template-columns:1fr 1fr;gap:36px;}
@media (max-width:800px){.product-hero{grid-template-columns:1fr;}}
.product-image{
  aspect-ratio:1/1;max-height:480px;border-radius:var(--radius);background:linear-gradient(135deg,var(--brand-pale),#fff);
  display:flex;align-items:center;justify-content:center;color:var(--brand);
  overflow:hidden;position:relative;
}
.product-image img{width:100%;height:100%;object-fit:cover;border-radius:var(--radius);aspect-ratio:1/1;}
.img-credit{display:block;font-size:.72rem;color:var(--grey-400);margin-top:6px;}
.img-credit a{color:var(--grey-400);text-decoration:underline;}
.product-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.product-thumb{width:64px;height:64px;padding:0;border-radius:8px;border:2px solid transparent;overflow:hidden;cursor:pointer;background:none;flex-shrink:0;}
.product-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.product-thumb.active{border-color:var(--brand);}
.breadcrumb{font-size:.82rem;color:var(--grey-400);margin-bottom:18px;}
.breadcrumb a{color:var(--grey-700);}
.page-divider{border:none;border-top:1px solid var(--grey-200);margin:24px 0 0;}
.spec-table{width:100%;border-collapse:collapse;margin-top:16px;}
.spec-table td{padding:8px 0;border-bottom:1px solid var(--grey-200);font-size:.9rem;}
.spec-table td:first-child{color:var(--grey-700);width:40%;}
.qty-row{display:flex;align-items:center;gap:10px;margin:18px 0;}
.qty-row input[type=number]{width:70px;padding:8px;border:1px solid var(--grey-200);border-radius:var(--radius);}
.qty-row input[type=date]{padding:8px;border:1px solid var(--grey-200);border-radius:var(--radius);}
.field-label{font-size:.82rem;font-weight:700;color:var(--grey-700);display:block;margin-bottom:4px;}

/* ---------- Forms ---------- */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media (max-width:700px){.form-grid{grid-template-columns:1fr;}}
.form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;}
.form-field.full{grid-column:1/-1;}
.form-field label{font-size:.85rem;font-weight:700;color:var(--grey-700);}
.form-field input,.form-field select,.form-field textarea{
  padding:10px 12px;border:1px solid var(--grey-200);border-radius:var(--radius);font-size:.92rem;font-family:inherit;
}
.form-field textarea{resize:vertical;min-height:90px;}

/* ---------- Cart / Anfrage table ---------- */
.cart-table{width:100%;border-collapse:collapse;margin-bottom:26px;}
.cart-table th{text-align:left;font-size:.78rem;text-transform:uppercase;color:var(--grey-400);padding:10px 8px;border-bottom:2px solid var(--grey-200);}
.cart-table td{padding:12px 8px;border-bottom:1px solid var(--grey-200);font-size:.9rem;vertical-align:middle;}
.cart-empty{padding:40px 0;text-align:center;color:var(--grey-700);}
.remove-btn{background:none;border:none;color:#b23b3b;cursor:pointer;font-size:.85rem;font-weight:700;}
.remove-btn:hover{text-decoration:underline;}

/* ---------- Alert / notice ---------- */
.notice{
  background:var(--brand-pale);border:1px solid var(--brand-light);color:var(--brand-dark);
  padding:14px 18px;border-radius:var(--radius);margin-bottom:22px;font-size:.9rem;
}

/* ---------- Footer ---------- */
.site-footer{background:var(--brand-dark);color:#dce9d3;padding:48px 0 20px;margin-top:40px;}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:28px;margin-bottom:32px;}
.footer-grid h4{color:#fff;font-size:.9rem;text-transform:uppercase;letter-spacing:.04em;margin-bottom:14px;}
.footer-grid ul li{margin-bottom:8px;}
.footer-grid a{color:#dce9d3;font-size:.88rem;}
.footer-grid a:hover{color:#fff;}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.15);padding-top:18px;font-size:.8rem;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;color:#b9cdb0;
}
.footer-bottom a{color:#b9cdb0;}

/* ---------- Utility ---------- */
.text-center{text-align:center;}
.mt-0{margin-top:0;}
.small{font-size:.85rem;color:var(--grey-700);}
[data-i18n-hide]{display:none;}

/* ---------- Raumbuchung ---------- */
.room-cal-table{ border-collapse:collapse; width:100%; min-width:820px; }
.room-cal-table th, .room-cal-table td{ border:1px solid var(--grey-200); text-align:center; padding:4px; font-size:.75rem; }
.room-cal-table th{ background:var(--grey-100); }
.room-cal-day{ text-align:left; font-weight:600; white-space:nowrap; background:var(--grey-100); }
.room-slot{ width:34px; height:28px; cursor:default; }
.room-slot-free{ background:#e4f3e0; cursor:pointer; }
.room-slot-free:hover{ background:var(--brand-light); }
.room-slot-booked{ background:#f5d9d9; }
.room-cal-legend{ display:flex; align-items:center; gap:6px; margin-bottom:10px; font-size:.85rem; color:var(--grey-700); }
.room-legend-chip{ display:inline-block; width:16px; height:16px; border-radius:3px; margin-left:14px; }
.room-legend-chip:first-of-type{ margin-left:0; }
.notice.room-notice-error{ background:#fbdede; border-color:#e2a3a3; color:#7a1f1f; }
.notice.room-notice-warning{ background:#fff3cd; border-color:#e8d287; color:#7a5c00; }
.notice.room-notice-success{ background:#dff2df; border-color:#a9d6a9; color:#245224; }
