/*
Theme Name: Gitarrenschule Meyer
Theme URI: 
Author: 
Description: Schlankes eigenes Theme für die Gitarrenschule – Landingpage/Shop-Startseite plus (optionalem) App-artigem Kursbereich. Kein Page-Builder- oder Framework-Overhead, bewusst auf Geschwindigkeit ausgelegt.
Version: 1.0
Requires PHP: 7.4
Text Domain: gitarrenschule
*/

/* ---------- RESET & TOKENS ---------- */
:root{
  --red:#E11F3C;
  --red-dark:#B0132B;
  --red-tint:#FDECEE;
  --ink:#15151A;
  --ink-soft:#63636C;
  --white:#FFFFFF;
  --surface:#F7F7F9;
  --line:#E7E7EC;
}
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;font-family:'Inter',sans-serif;color:var(--ink);background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
.grotesk{font-family:'Space Grotesk',sans-serif;}
.wrap{max-width:1180px;margin:0 auto;padding:0 clamp(1.25rem,4vw,2.5rem);}

/* ---------- NAV (header.php + front-page.php) ---------- */
.nav{
  position:sticky;top:0;z-index:30;
  background:rgba(255,255,255,.92);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:90px;}
.logo{font-weight:700;font-size:1.05rem;display:flex;align-items:center;height:100%;gap:.5rem;}
.logo img{display:block;width:auto;height:90px;max-width:160px;object-fit:contain;}
.logo .dot{width:9px;height:9px;border-radius:50%;background:var(--red);}
.nav-links{display:flex;align-items:center;gap:2rem;font-size:.92rem;font-weight:500;list-style:none;margin:0;padding:0;}
.nav-links a:hover{color:var(--red);}
.nav-cta{
  background:var(--ink);color:var(--white);padding:.6rem 1.1rem;border-radius:8px;
  font-size:.85rem;font-weight:600;
}
@media (max-width:820px){
  .nav-links{
    display:none;
    position:absolute;
    top:68px;left:0;right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:var(--white);
    border-bottom:1px solid var(--line);
    box-shadow:0 12px 24px rgba(21,21,26,.08);
    padding:.4rem clamp(1.25rem,4vw,2.5rem) .8rem;
  }
  .nav-links.is-open{display:flex;}
  .nav-links li{width:100%;border-bottom:1px solid var(--line);}
  .nav-links li:last-child{border-bottom:none;}
  .nav-links a{display:block;padding:.85rem 0;font-size:.98rem;}
}

/* ---------- BURGER-ICON (mobiles Hauptmenü) ---------- */
.nav-burger{
  display:none;
  width:42px;height:42px;flex:none;
  align-items:center;justify-content:center;
  flex-direction:column;gap:4px;
  background:var(--red);
  border:none;border-radius:10px;
  cursor:pointer;
  transition:background .15s ease;
}
.nav-burger:hover{background:var(--red-dark);}
.nav-burger span{
  display:block;width:18px;height:2px;border-radius:2px;
  background:var(--white);
  transition:transform .2s ease, opacity .2s ease;
}
.nav-burger.is-open span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.nav-burger.is-open span:nth-child(2){opacity:0;}
.nav-burger.is-open span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

@media (max-width:820px){
  .nav-burger{display:inline-flex;}
}

/* ---------- HERO ---------- */
.hero{padding:clamp(3rem,8vw,6rem) 0 clamp(2.5rem,6vw,4rem);}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center;}
@media (max-width:900px){.hero .wrap{grid-template-columns:1fr;}}
.eyebrow{color:var(--red);font-weight:600;font-size:.85rem;margin-bottom:.9rem;}
.hero h1{font-size:clamp(2.1rem,5vw,3.4rem);line-height:1.08;margin:0 0 1.2rem;font-weight:600;max-width:16ch;}
.hero p{font-size:1.05rem;color:var(--ink-soft);max-width:44ch;line-height:1.6;margin:0 0 2rem;}
.hero-actions{display:flex;gap:.9rem;flex-wrap:wrap;}
.btn{
  display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.4rem;border-radius:9px;
  font-size:.92rem;font-weight:600;cursor:pointer;border:1px solid var(--line);background:var(--white);color:var(--ink);
}
.btn.primary{background:var(--red);border-color:var(--red);color:var(--white);}
.btn.primary:hover{background:var(--red-dark);border-color:var(--red-dark);}
.btn:hover{border-color:var(--red);}
.hero-visual{
  background:var(--ink);border-radius:16px;aspect-ratio:4/3;position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.hero-visual .play{width:64px;height:64px;border-radius:50%;background:var(--red);display:flex;align-items:center;justify-content:center;}
.hero-visual .play svg{width:22px;height:22px;fill:var(--white);margin-left:3px;}
.hero-badge{
  position:absolute;bottom:16px;left:16px;background:var(--white);border-radius:8px;
  padding:.5rem .8rem;font-size:.78rem;font-weight:600;display:flex;align-items:center;gap:.4rem;
}
.hero-badge .dotpulse{width:7px;height:7px;border-radius:50%;background:var(--red);}

/* ---------- HOW IT WORKS ---------- */
.steps{padding:clamp(2.5rem,6vw,4rem) 0;background:var(--surface);}
.steps h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:600;margin:0 0 2.2rem;}
.step-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem;}
@media (max-width:800px){.step-grid{grid-template-columns:1fr;}}
.step{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:1.6rem;}
.step .num{font-family:'Space Grotesk',sans-serif;font-weight:700;color:var(--red);font-size:1.1rem;margin-bottom:.7rem;}
.step h3{margin:0 0 .5rem;font-size:1.05rem;font-weight:600;}
.step p{margin:0;color:var(--ink-soft);font-size:.92rem;line-height:1.55;}

/* ---------- COURSES ---------- */
.courses{padding:clamp(3rem,7vw,5rem) 0;}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:2rem;flex-wrap:wrap;}
.section-head h2{font-size:clamp(1.6rem,3vw,2.1rem);font-weight:600;margin:0;}
.section-head p{color:var(--ink-soft);margin:.4rem 0 0;font-size:.95rem;}
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem;}
@media (max-width:980px){.course-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:640px){.course-grid{grid-template-columns:1fr;}}
.course-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .15s ease;}
.course-card:hover{border-color:var(--red);}
.course-thumb{aspect-ratio:16/10;background:var(--ink);position:relative;}
.course-level{
  position:absolute;top:12px;left:12px;background:var(--white);color:var(--ink);
  font-size:.72rem;font-weight:600;padding:.3rem .6rem;border-radius:6px;
}
.course-body{padding:1.3rem 1.3rem 1.5rem;display:flex;flex-direction:column;gap:.6rem;flex:1;}
.course-body h3{margin:0;font-size:1.1rem;font-weight:600;}
.course-body p{margin:0;font-size:.88rem;color:var(--ink-soft);line-height:1.55;flex:1;}
.course-meta{display:flex;justify-content:space-between;align-items:center;margin-top:.4rem;}
.course-price{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:1.15rem;}
.course-price span{font-family:'Inter',sans-serif;font-weight:500;font-size:.78rem;color:var(--ink-soft);margin-left:.3rem;}
.course-cta{
  display:block;text-align:center;margin-top:.8rem;padding:.7rem;border-radius:8px;
  background:var(--ink);color:var(--white);font-weight:600;font-size:.88rem;
}
.course-cta:hover{background:var(--red);}

/* ---------- ABOUT ---------- */
.about{padding:clamp(2.5rem,6vw,4.5rem) 0;background:var(--surface);}
.about .wrap{display:grid;grid-template-columns:.8fr 1.2fr;gap:2.5rem;align-items:center;}
@media (max-width:820px){.about .wrap{grid-template-columns:1fr;}}
.about-photo{aspect-ratio:1/1;background:var(--ink);border-radius:14px;max-width:280px;}
.about h2{font-size:clamp(1.4rem,2.6vw,1.9rem);margin:0 0 .8rem;font-weight:600;}
.about p{color:var(--ink-soft);line-height:1.65;max-width:56ch;margin:0 0 .5rem;}

/* ---------- FOOTER ---------- */
footer{padding:2.5rem 0;border-top:1px solid var(--line);}
footer .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;font-size:.85rem;color:var(--ink-soft);}
footer a:hover{color:var(--red);}

/* ---------- GENERIC PAGES (Impressum, Datenschutz etc. via page.php) ---------- */
.simple-page{padding:clamp(2.5rem,6vw,4rem) 0;max-width:760px;margin:0 auto;}
.simple-page h1{font-size:clamp(1.8rem,3.5vw,2.4rem);margin:0 0 1.5rem;}
.simple-page p, .simple-page li{color:var(--ink-soft);line-height:1.7;}

/* ---------- WOOCOMMERCE GRUNDSTYLING (Shop-Archiv, Produktseite, Warenkorb, Checkout) ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit{
  background:var(--red);color:var(--white);border-radius:8px;border:none;
  padding:.75rem 1.3rem;font-weight:600;font-family:'Inter',sans-serif;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover{
  background:var(--red-dark);color:var(--white);
}
.woocommerce ul.products li.product{margin-bottom:1.5rem;}
.woocommerce span.price, .woocommerce ins{color:var(--ink);font-weight:600;}
.woocommerce table.shop_table{border-color:var(--line);}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select{
  border:1px solid var(--line);border-radius:8px;padding:.6rem .8rem;
}

/* ---------- DASHBOARD DROPDOWN ---------- */

.nav-dropdown {
  position: relative;
  display: block;
}

/* Dashboard Button */

.nav-dropdown-toggle {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

/* Dropdown */

.nav-dropdown-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;

  position: absolute;
  top: calc(100% + 8px);
  right: 0;

  width: 270px;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;

  padding: 8px 0;

  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);

  z-index: 9999;
}

/* Geöffnet */

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Pfeil im Dashboard-Button */

.dropdown-arrow {
  display: inline-block;
  font-size: .7rem;
  transition: transform .15s ease;
}

.nav-dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Menü Links */

.nav-dropdown-menu a {
  display: block;

  padding: 10px 16px;

  color: var(--ink);
  text-decoration: none;

  font-size: .9rem;
  line-height: 1.35;

  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--surface);
  color: var(--red);
}

/* Abmelden */

.nav-dropdown-menu .logout-link {
  margin-top: 6px;
  padding-top: 12px;

  border-top: 1px solid var(--line);
}
/* Hauptüberschrift auf einzelnen WordPress-Seiten */
body.page .entry-title,
body.page .wp-block-post-title {
    display: table;
    background: #d90000;
    color: #ffffff;
    border-radius: 14px;
    padding: 0.15em 0.65em 0.2em 0.5em;
    line-height: 1.15;
}

/* Weißer Stern vor der Hauptüberschrift */
body.page .entry-title::before,
body.page .wp-block-post-title::before {
    content: "★";
    color: #ffffff;
    display: inline-block;
    margin-right: 0.4em;
    font-size: 0.65em;
    transform: translateY(-0.05em);
}