/*
Theme Name: Fahrschule G&R
Theme URI: https://fahrschule-gundr.de
Author: Fahrschule G&R
Description: Modernes, schlichtes Theme für die Fahrschule G&R Peter Rothmeier in Eppingen. Startseite und Fußzeile werden unter Seiten bearbeitet, das Menü unter Design > Menüs.
Version: 2.2.0
Requires at least: 6.4
Tested up to: 6.8
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: fahrschule-gundr
*/

:root{--gr-ink:#1b2412;--gr-yellow:#efe22a;--gr-green:#4f7a12;--gr-tint:#f5f7ec;--gr-line:#e6ead8;--gr-muted:#4a5540}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-size:17px;line-height:1.6;color:var(--gr-ink);background:#fff;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-weight:800;line-height:1.1;margin:0;color:var(--gr-ink)}
p{margin:0 0 1em}
img{max-width:100%;height:auto}
a{color:var(--gr-green);text-decoration:none}
:focus-visible{outline:3px solid var(--gr-green);outline-offset:3px}
.screen-reader-text{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Buttons */
.wp-block-button__link,.gr-cta-btn{display:inline-block;background:var(--gr-yellow);color:var(--gr-ink);font-weight:800;font-size:13px;letter-spacing:.14em;text-transform:uppercase;padding:18px 32px;border-radius:999px;border:0;line-height:1.3;text-decoration:none;cursor:pointer}
.gr-cta-btn{padding:14px 24px}
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:16px}
.gr-btns-center{justify-content:center;margin-top:40px}

/* Header */
.gr-header{border-bottom:1px solid var(--gr-line);background:#fff;position:relative;z-index:20}
.gr-header-inner{max-width:1200px;margin:0 auto;padding:0 32px;min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.gr-logo img{height:60px;width:auto;display:block}
.gr-nav{font-size:15px;font-weight:500;margin-left:auto}
.gr-menu,.gr-menu ul{list-style:none;margin:0;padding:0}
.gr-menu{display:flex;gap:26px;align-items:center}
.gr-menu a{color:var(--gr-ink);padding:8px 0;display:block}
.gr-menu a:hover,.gr-menu .current-menu-item>a,.gr-menu .current-menu-ancestor>a{color:var(--gr-green)}
.gr-menu>li{position:relative}
.gr-menu>li.menu-item-has-children>a:after{content:" ▾";font-size:12px}
.gr-menu .sub-menu{display:none;position:absolute;top:100%;left:-14px;background:#fff;border:1px solid var(--gr-line);border-radius:16px;padding:10px;min-width:200px;box-shadow:0 12px 32px rgba(27,36,18,.12);z-index:30}
.gr-menu li:hover>.sub-menu,.gr-menu li:focus-within>.sub-menu{display:block}
.gr-menu .sub-menu a{padding:10px 14px;border-radius:10px}
.gr-menu .sub-menu a:hover{background:var(--gr-tint)}
.gr-burger{display:none;background:none;border:0;padding:10px;cursor:pointer;flex-direction:column;gap:5px;margin-left:auto}
.gr-burger i{display:block;width:26px;height:2px;background:var(--gr-ink)}
@media (max-width:1180px){
  .gr-burger{display:flex}
  .gr-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--gr-line);padding:12px 32px 24px;margin:0}
  .gr-nav.is-open{display:block}
  .gr-menu{flex-direction:column;align-items:flex-start;gap:4px}
  .gr-menu .sub-menu{display:block;position:static;border:0;box-shadow:none;padding:0 0 0 16px;min-width:0}
  .gr-menu>li.menu-item-has-children>a:after{content:""}
}
@media (max-width:600px){.gr-cta-btn{display:none}.gr-header-inner{padding:0 20px}}

/* Abschnitte */
.gr-sec{padding:112px 32px}
.gr-sec>*,.gr-strip>*{max-width:1200px;margin-left:auto;margin-right:auto}
.gr-home .wp-block-column>*{margin-top:0;margin-bottom:0}
.gr-home .wp-block-column>*+*{margin-top:24px}
.gr-home .gr-card>*+*{margin-top:14px}
.gr-home .gr-card .gr-letter{margin-top:0}
.gr-home .gr-item>*+*{margin-top:16px}
.gr-home .wp-block-columns,.gr-page .wp-block-columns{display:flex;flex-wrap:wrap}
.gr-home p{margin-bottom:0}
.gr-sec--tint{background:var(--gr-tint)}
.gr-sec--first{padding-top:96px;padding-bottom:96px}
.gr-eyebrow{font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--gr-green);margin:0 0 14px}
.gr-sec h1{font-size:68px;letter-spacing:-.02em}
.gr-lead{margin-bottom:0}
.gr-sec h2,.gr-page h2{font-size:44px;letter-spacing:-.02em}
.gr-sec h3,.gr-page h3{font-size:22px;font-weight:700;letter-spacing:-.01em;line-height:1.2}
.gr-muted{color:var(--gr-muted)}
.gr-lead{font-size:19px;color:var(--gr-muted);max-width:520px}
.gr-cols{gap:24px}
.gr-cols--hero{gap:64px!important;align-items:center}
.gr-btn-dark .wp-block-button__link{background:var(--gr-ink);color:#fff}
.is-style-outline .wp-block-button__link{background:transparent;color:var(--gr-ink);border:2px solid var(--gr-ink);padding:16px 30px}
.wp-block-button__link:hover{opacity:.88}
.gr-head{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;flex-wrap:wrap;margin-bottom:48px}
.gr-head h2{margin:0}
.gr-center{text-align:center;max-width:620px;margin:0 auto 48px}

/* Fotos */
.wp-block-image.gr-ph{margin:0}
.gr-ph img{width:100%;height:100%;object-fit:cover;border-radius:24px;display:block}
.gr-ph--hero{aspect-ratio:1/1.05}
.gr-ph--wide{aspect-ratio:16/10}
.gr-ph--card{aspect-ratio:3/2}
.gr-ph--portrait{aspect-ratio:4/5}
.gr-ph--hero img{border-radius:32px}

/* Infoleiste */
.gr-strip{background:var(--gr-ink);color:#fff;padding:44px 32px}
.gr-strip .wp-block-columns{gap:32px!important;margin:0}
.gr-strip p{margin:0;font-size:15px;opacity:.85}
.gr-strip p.gr-strip-title{font-weight:800;font-size:20px;color:var(--gr-yellow);opacity:1}

/* Karten */
.gr-card{background:var(--gr-tint);border-radius:24px;padding:36px;display:flex;flex-direction:column;gap:14px}
.gr-sec--tint .gr-card{background:#fff}
.gr-letter{font-size:48px!important;font-weight:800;color:var(--gr-green);line-height:1!important}
.gr-link{font-weight:800;font-size:13px;letter-spacing:.14em;text-transform:uppercase;margin:0}
.gr-link a{color:var(--gr-ink);border-bottom:2px solid var(--gr-yellow);padding-bottom:4px}
.gr-item{display:flex;flex-direction:column;gap:16px}
.gr-item h3,.gr-item p{margin:0}

/* News */
.gr-news .wp-block-post-featured-image{margin:0 0 16px}
.gr-news .wp-block-post-featured-image img{border-radius:24px;aspect-ratio:3/2;object-fit:cover;width:100%}
.gr-news .wp-block-post-date{font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--gr-muted);margin:0 0 8px}
.gr-news .wp-block-post-title{font-size:22px;margin:0 0 8px}
.gr-news .wp-block-post-title a{color:var(--gr-ink)}
.gr-news .wp-block-post-excerpt{color:var(--gr-muted);margin:0}

/* Instagram */
.gr-insta{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.gr-insta span{aspect-ratio:1;border-radius:16px;background:#dfe8c4;display:flex;align-items:center;justify-content:center;color:#4f6a1f;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.gr-insta-note{text-align:center;font-size:14px;color:var(--gr-muted);margin-top:16px}

/* Beratung-Box */
.gr-cta{background:var(--gr-yellow);border-radius:40px;padding:72px;max-width:1200px;margin:0 auto}
.gr-cta .gr-eyebrow{color:var(--gr-ink)}
.gr-cta h2{margin:0 0 24px}
.gr-cta .gr-cols--hero{gap:48px!important}
.gr-cta .gr-ph img{background:#f6ee7a}

/* Unterseiten */
.gr-page{padding:72px 32px 112px}
.gr-page-title{text-align:center;font-size:56px;margin:0 0 56px}
.gr-center-text{text-align:center}
.gr-content{max-width:1200px;margin:0 auto}
.gr-content>*{max-width:760px;margin-left:auto;margin-right:auto}
.gr-content>.alignwide,.gr-content>.alignfull{max-width:1200px}
.gr-content h2{font-size:36px;margin-top:40px;margin-bottom:16px}
.gr-content h3{font-size:24px;font-weight:700;line-height:1.2;margin:0}
.gr-content .wp-block-image img{border-radius:24px}
.gr-content .wp-block-columns{display:flex;flex-wrap:wrap;gap:24px;margin-bottom:40px}
.gr-content .gr-item>*+*{margin-top:16px}
.gr-content .gr-item p{margin:0}
.gr-single-img{max-width:1200px;margin:0 auto 40px}
.gr-single-img img{width:100%;border-radius:24px}
.gr-date{font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--gr-muted);margin:0 0 8px}


/* Führerschein-Kacheln */
.gr-content .gr-tiles{gap:14px;margin:0 0 32px}
.gr-tiles .wp-block-button__link{display:flex;align-items:center;justify-content:center;min-width:104px;min-height:104px;padding:16px 22px;background:var(--gr-tint);color:var(--gr-ink);font-size:26px;font-weight:800;letter-spacing:0;text-transform:none;border-radius:24px;border:2px solid var(--gr-line);transition:background .15s,border-color .15s}
.gr-tiles .wp-block-button__link:hover,.gr-tiles .wp-block-button__link:focus-visible{background:var(--gr-yellow);border-color:var(--gr-yellow);opacity:1}
.gr-content h2+.gr-muted{margin-bottom:16px}

/* News-Liste */
.gr-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:48px 24px;max-width:1200px;margin:0 auto}
.gr-post-img{display:block;margin-bottom:16px}
.gr-post-img img{border-radius:24px;aspect-ratio:3/2;object-fit:cover;width:100%;height:auto;display:block}
.gr-post h3{font-size:22px;margin:0 0 8px}
.gr-post h3 a{color:var(--gr-ink)}
.gr-post p{margin:0 0 8px}
.gr-pagination{text-align:center;margin-top:48px}
.gr-pagination .nav-links{display:flex;gap:12px;justify-content:center}
.gr-news .wp-block-post-template{display:grid;grid-template-columns:repeat(3,1fr);gap:48px 24px;list-style:none;margin:0;padding:0}

/* Footer */
.gr-footer{background:var(--gr-ink);color:#fff;padding:72px 32px 40px}
.gr-footer-inner{max-width:1200px;margin:0 auto}
.gr-footer a{color:#fff}
.gr-footer a:hover{color:var(--gr-yellow)}
.gr-footer .wp-block-columns{display:flex;flex-wrap:wrap;gap:40px;margin:0 0 56px}
.gr-footer h4{font-size:16px;font-weight:800;margin:0 0 14px;color:#fff}
.gr-footer p{font-size:15px;margin:0 0 6px}
.gr-footer .gr-copy{padding-top:24px;border-top:1px solid #3a4630;font-size:14px;opacity:.75;margin:0}

/* Mobil */
@media (max-width:781px){
  .gr-sec{padding:72px 24px}
  .gr-sec h1{font-size:42px}
  .gr-sec h2,.gr-page h2{font-size:32px}
  .gr-page-title{font-size:38px}
  .gr-cols--hero{gap:32px!important}
  .gr-cta{padding:40px 28px;border-radius:28px}
  .gr-insta{grid-template-columns:repeat(3,1fr)}
  .gr-grid,.gr-news .wp-block-post-template{grid-template-columns:1fr}
  .gr-footer{padding:56px 24px 32px}
  .gr-strip{padding:36px 24px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
