/*
Theme Name: Conny's Theme
Theme URI: https://conny-weitmann.de/wp-content/themes/conny/
Author: Peter Krywalski
Author URI: https://krywalski.com/
Description: Individuelles, responsives WordPress-Theme für Conny's Catering, Märkte und Veranstaltungen mit SEO-optimierter Struktur und editierbarer Galerie-Unterstützung für FooGallery.
Version: 1.0.23
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: connys
Tags: custom-logo, custom-menu, featured-images, responsive-layout, seo-ready
*/

:root {
    --pink: #cc3ca1;
    --pink-dark: #a71c80;
    --text: #424247;
    --muted: #818188;
    --soft: #f6f6f6;
    --black: #111518;
    --white: #fff;
    --container: 1120px;
    --serif: "Bodoni 72","Bodoni 72 Oldstyle","Bodoni MT","Didot","Hoefler Text",Georgia,"Times New Roman",serif;
    --sans: Calibri, Arial,"Helvetica Neue",Helvetica,sans-serif;
    --script: "Brush Script MT","Segoe Script","Apple Chancery",cursive;
    --shadow: 0 14px 34px rgba(0,0,0,.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font: 16px/1.75 var(--sans);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .22s ease,background-color .22s ease,transform .22s ease,opacity .22s ease;
}

a:hover,a:focus {
    color: var(--pink);
}

p {
    margin: 0 0 1.35rem;
}

.container {
    width: min(calc(100% - 40px),var(--container));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.site-header {
    position: relative;
    z-index: 30;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.05);
}

.nav-wrap {
    height: 134px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    justify-content: center;
}

.brand img {
    width: 145px;
    height: auto;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu.left {
    justify-content: flex-start;
}

.main-menu.right {
    justify-content: flex-end;
}

.main-menu a {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .045em;
    color: #333;
    text-transform: none;
    position: relative;
    padding: 8px 0;
}

.main-menu a::after,.footer-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--pink);
    transition: right .25s ease;
}

.main-menu a:hover::after,.main-menu a:focus::after,.main-menu .current-menu-item>a::after,.footer-menu a:hover::after {
    right: 0;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 12px;
    color: #333;
}

.hero {
    position: relative;
    min-height: 322px;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    background: #d26bae;
}

.hero--compact {
    min-height: 260px;
}

.hero__media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: grayscale(.04);
    transform: scale(1.01);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(204,60,161,.70),rgba(204,60,161,.58));
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: min(1180px,calc(100% - 42px));
    color: #fff;
}

.hero h1 {
    font: 400 clamp(2.2rem,5.1vw,5.1rem)/1.12 var(--serif);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,.09);
}

.hero em {
    font-style: italic;
}

.hero__notice {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(204,60,161,.95);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
    padding: 5px 12px;
    white-space: nowrap;
}

.section {
    padding: 86px 0;
}

.section--tight {
    padding: 64px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 76px;
    align-items: center;
}

.grid-2.reverse>.copy {
    order: 2;
}

.grid-2.reverse>.media {
    order: 1;
}

h1,h2,h3 {
    font-family: var(--serif);
    line-height: 1.15;
    color: #3d3d42;
    letter-spacing: -.02em;
}

h2 {
    font-size: clamp(2rem,3.2vw,3.2rem);
    margin: 0 0 30px;
}

h3 {
    font-size: clamp(1.65rem,2vw,2.35rem);
    margin: 0 0 24px;
}

.lead {
    font: 700 clamp(2.1rem,3.4vw,3.6rem)/1.12 var(--serif);
    letter-spacing: -.035em;
    color: #333;
    margin: 0 0 55px;
}

.copy p {
    color: #7c7c83;
}

.media img {
    width: 100%;
    box-shadow: none;
    object-fit: cover;
}

.signature {
    font: 700 clamp(2rem,3vw,3.2rem)/1.2 cursive;
    color: var(--pink);
    margin-top: 26px;
}

.button,.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--pink);
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .11em;
    font-size: 13px;
    min-height: 48px;
    padding: 0 44px;
    border-radius: 0;
    box-shadow: none;
}

.button:hover,.button:focus,.wp-block-button__link:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
    color: #fff !important;
}

.events-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
    padding: 90px 0;
}

.events-teaser h2 {
    font-size: 2.2rem;
    margin: 0;
}

.pink-card {
    background: var(--pink);
    color: #fff;
    padding: 46px 56px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pink-card h3 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 1.85rem;
}

.pink-card p {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.cta-band {
    background: #f7f7f7;
    padding: 76px 0;
}

.cta-band__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}

.cta-band h2 {
    font-size: 2.55rem;
    margin: 0 0 8px;
}

.cta-band p {
    font-weight: 800;
    color: #333;
    margin: 0;
}

.facebook-band {
    background: var(--pink);
    color: #fff;
    padding: 76px 0;
}

.facebook-band__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}

.facebook-band h2 {
    color: #fff;
    font-size: 3rem;
    margin: 0 0 18px;
}

.facebook-band p {
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.facebook-icon {
    width: 112px;
    height: 112px;
    border-radius: 8px;
    background: #fff;
    color: var(--pink);
    display: grid;
    place-items: center;
    font: bold 90px/1 Arial;
    box-shadow: 0 12px 26px rgba(0,0,0,.12);
}

.facebook-icon:hover,.facebook-icon:focus {
    transform: translateY(-3px);
    background: #fff4fb;
    color: var(--pink-dark);
    box-shadow: 0 10px 24px rgba(204,60,161,.24);
    outline: 2px solid rgba(204,60,161,.28);
    outline-offset: 4px;
}

.site-footer {
    background: #f6f6f6;
}

.footer-menu {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 24px 0;
}

.footer-menu a {
    font-size: 13px;
    color: #555;
    position: relative;
    padding-bottom: 5px;
}

.copyright {
    background: #101417;
    color: #fff;
    font-size: 12px;
    padding: 26px 0;
}

.page-title-bar {
    background: #f7f7f7;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
    color: #999;
}

.page-title-bar .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.page-title-bar h1 {
    font: 400 1.2rem/1.2 var(--sans);
    margin: 0;
    color: #9b9b9b;
}

.breadcrumb {
    font-size: 12px;
}

.legal-content {
    padding: 78px 0 120px;
}

.legal-content h1 {
    font-size: 3rem;
    margin: 0 0 28px;
}

.legal-content h2 {
    font-size: 2.1rem;
    margin: 42px 0 18px;
}

.legal-content p,.legal-content li {
    color: #777;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
    color: #777;
}

.legal-table td {
    border: 1px solid #e5e5e5;
    padding: 10px 18px;
}

.calendar-page {
    text-align: center;
}

.calendar-intro {
    font: 700 clamp(2.1rem,3.6vw,3.6rem)/1.15 var(--serif);
    color: var(--pink);
    max-width: 980px;
    margin: 0 auto 70px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 84px 160px;
    max-width: 800px;
    margin: 0 auto 130px;
    text-align: left;
}

.calendar-card:nth-child(2) {
    grid-column: 2;
}

.calendar-card:nth-child(3) {
    grid-column: 1;
}

.calendar-card h2 {
    font-size: 1.55rem;
    margin: 0 0 12px;
}

.calendar-card time {
    font-size: 1.35rem;
    color: #777;
}

.calendar-note {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.35;
    color: #333;
}

.market-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
    margin-bottom: 128px;
}

.market-row:nth-child(even) .market-image {
    order: 2;
}

.market-row h2 {
    font-size: 2rem;
    margin: 0 0 26px;
}

.market-row p {
    color: #777;
}

.market-row strong {
    color: #555;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 72px;
    align-items: start;
}

.contact-grid h2 {
    text-align: center;
    font-size: 2.55rem;
}

.contact-form label {
    display: block;
    margin-bottom: 28px;
}

.contact-form span {
    display: none;
}

.contact-form input,.contact-form textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--pink);
    padding: 14px 18px;
    color: #555;
    background: #fff;
    font: inherit;
}

.contact-form textarea {
    min-height: 190px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    margin-top: 18px;
}

.contact-box {
    padding-top: 76px;
}

.contact-box h3 {
    font-size: 1.85rem;
}

.contact-box p {
    font-size: 1.2rem;
    color: #666;
}

.gallery-placeholder {
    border: 2px dashed #e0a3cf;
    padding: 35px;
    text-align: center;
    background: #fff7fc;
    color: #6e5470;
    margin-top: 30px;
}

.gallery-note {
    font-size: .95rem;
    color: #777;
}

.wp-block-gallery,.fest-gallery {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin: 36px 0;
}

.fest-gallery img {
    aspect-ratio: 1.2/1;
    object-fit: cover;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
    background: #fff;
    padding: 8px;
    z-index: 9999;
}

@media (max-width:900px) {
    .nav-wrap {
        height: auto;
        min-height: 96px;
        grid-template-columns: auto auto;
        justify-content: space-between;
    }
    .brand {
        justify-content: flex-start;
    }
    .brand img {
        width: 112px;
    }
    .menu-toggle {
        display: block;
    }
    .menu-panels {
        display: none;
        grid-column: 1/-1;
        padding: 0 0 18px;
    }
    .menu-panels.is-open {
        display: block;
    }
    .main-menu,.main-menu.left,.main-menu.right {
        display: block;
    }
    .main-menu a {
        display: block;
        padding: 12px 0;
    }
    .hero {
        min-height: 270px;
    }
    .hero h1 {
        font-size: clamp(2rem,8vw,3.8rem);
    }
    .hero__notice {
        position: relative;
        display: inline-block;
        white-space: normal;
        font-size: 14px;
        margin-bottom: 18px;
    }
    .grid-2,.events-teaser,.cta-band__inner,.facebook-band__inner,.contact-grid,.market-row,.calendar-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .grid-2.reverse>.copy,.grid-2.reverse>.media,.market-row:nth-child(even) .market-image {
        order: initial;
    }
    .section {
        padding: 58px 0;
    }
    .events-teaser {
        padding: 60px 0;
    }
    .pink-card {
        padding: 36px 30px;
    }
    .facebook-icon {
        width: 88px;
        height: 88px;
        font-size: 70px;
    }
    .calendar-card:nth-child(2),.calendar-card:nth-child(3) {
        grid-column: auto;
    }
    .calendar-grid {
        margin-bottom: 70px;
        text-align: center;
    }
    .contact-box {
        padding-top: 0;
    }
    .page-title-bar .container {
        display: block;
    }
    .wp-block-gallery,.fest-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .container {
        width: min(calc(100% - 28px),var(--container));
    }
    .hero {
        min-height: 230px;
    }
    .lead {
        margin-bottom: 32px;
    }
    .footer-menu {
        flex-wrap: wrap;
        gap: 18px;
    }
    .facebook-band h2 {
        font-size: 2.15rem;
    }
    .cta-band h2 {
        font-size: 2rem;
    }
    .wp-block-gallery,.fest-gallery {
        grid-template-columns: 1fr;
    }
}

/* Pixelnahe Korrekturen nach PNG-Vorlagen: Hauptmenü und Hero-Bereich */

.site-header {
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.nav-wrap {
    height: 112px;
    grid-template-columns: 1fr 138px 1fr;
    gap: 22px;
    max-width: 1040px;
}

.brand img,.custom-logo {
    width: 124px;
    max-height: 78px;
    object-fit: contain;
}

.main-menu {
    gap: 30px;
    white-space: nowrap;
}

.main-menu.left {
    justify-content: flex-end;
}

.main-menu.right {
    justify-content: flex-start;
}

.main-menu a {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .035em;
    color: #2f2f35;
    padding: 10px 0 9px;
}

.main-menu .current-menu-item>a {
    color: #777;
}

.main-menu a::after {
    bottom: 4px;
    height: 1px;
    background: var(--pink);
}

.hero {
    min-height: 248px;
    place-items: center;
    background: #c53b99;
}

.hero--startseite {
    min-height: 206px;
}

.hero--ueber-connys,.hero--wir-machen-ihr-fest,.hero--weihnachtsmaerkte,.hero--kontakt {
    min-height: 224px;
}

.hero--jahreskalender {
    min-height: 306px;
}

.hero__media {
    background-position: center center;
    filter: none;
    transform: none;
}

.hero::before {
    background: rgba(203,61,160,.64);
}

.hero--startseite::before {
    background: rgba(203,61,160,.58);
}

.hero__content {
    width: min(1120px,calc(100% - 64px));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    max-width: 1040px;
    color: #fff;
    font: 400 clamp(2.35rem,4.35vw,4.85rem)/1.12 var(--serif);
    letter-spacing: -.015em;
    text-shadow: 0 1px 7px rgba(0,0,0,.10);
}

.hero--startseite h1 {
    font-size: clamp(2.1rem,3.9vw,4.2rem);
    max-width: 1060px;
    margin-top: 22px;
}

.hero--kontakt h1,.hero--jahreskalender h1 {
    font-size: clamp(2.5rem,4.6vw,5.05rem);
}

.hero__notice {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(203,61,160,.98);
    color: #fff;
    font: 800 16px/1.25 var(--sans);
    padding: 3px 10px;
    white-space: nowrap;
    text-shadow: none;
}

@media (max-width:900px) {
    .nav-wrap {
        height: auto;
        min-height: 96px;
        grid-template-columns: 1fr auto;
        max-width: none;
    }
    .brand {
        order: 1;
    }
    .menu-toggle {
        order: 2;
    }
    .menu-panels {
        order: 3;
    }
    .main-menu.left,.main-menu.right {
        justify-content: flex-start;
    }
    .main-menu {
        white-space: normal;
    }
    .hero {
        min-height: 220px;
    }
    .hero--startseite {
        min-height: 210px;
    }
    .hero--jahreskalender {
        min-height: 250px;
    }
    .hero__content {
        width: min(100% - 34px,920px);
    }
    .hero h1,.hero--startseite h1 {
        font-size: clamp(2rem,8vw,3.4rem);
        margin-top: 10px;
    }
    .hero__notice {
        font-size: 12px;
        max-width: calc(100% - 20px);
        white-space: normal;
        text-align: center;
    }
}

/* Korrektur v4: Startseiten-Hinweis steht unter dem Hero-Haupttext statt am oberen Bildrand. */

.hero__content {
    flex-direction: column;
    gap: 18px;
}

.hero__content .hero__notice {
    position: static;
    display: inline-block;
    transform: none;
    margin: 0;
    background: rgba(203,61,160,.98);
    color: #fff;
    font: 800 16px/1.25 var(--sans);
    padding: 4px 12px;
    white-space: normal;
    text-shadow: none;
    max-width: calc(100% - 20px);
}

.hero--startseite h1 {
    margin-top: 0;
}

@media (max-width:900px) {
    .hero__content {
        gap: 14px;
    }
    .hero__content .hero__notice {
        font-size: 12px;
        text-align: center;
    }
}

/* Korrektur v5: Hero-Texte exakt horizontal und vertikal im Hero-Bereich zentrieren. */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: min(1120px,calc(100% - 64px));
    min-height: inherit;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    padding: 0;
}

.hero h1 {
    margin: 0 auto;
}

.hero__content .hero__notice {
    margin: 0 auto;
}

@media (max-width:900px) {
    .hero__content {
        width: min(100% - 34px,920px);
        gap: 14px;
    }
}

/* Korrektur v6: Hero-Bereich auf 50vh setzen. */

.hero,
.hero--compact,
.hero--startseite,
.hero--ueber-connys,
.hero--wir-machen-ihr-fest,
.hero--jahreskalender,
.hero--weihnachtsmaerkte,
.hero--kontakt {
    min-height: 50vh;
}

@media (max-width:900px) {
    .hero,
  .hero--compact,
  .hero--startseite,
  .hero--ueber-connys,
  .hero--wir-machen-ihr-fest,
  .hero--jahreskalender,
  .hero--weihnachtsmaerkte,
  .hero--kontakt {
        min-height: 50vh;
    }
}

@media (max-width:560px) {
    .hero,
  .hero--compact,
  .hero--startseite,
  .hero--ueber-connys,
  .hero--wir-machen-ihr-fest,
  .hero--jahreskalender,
  .hero--weihnachtsmaerkte,
  .hero--kontakt {
        min-height: 50vh;
    }
}

/* Korrektur v7: Jahreskalender-Textfelder wie in der PNG-Vorlage diagonal anordnen. */

.calendar-page {
    padding-top: 68px;
    padding-bottom: 250px;
    text-align: center;
}

.calendar-intro {
    max-width: 1080px;
    margin: 0 auto 78px;
    color: var(--pink);
    font: 700 clamp(2.15rem,3.25vw,3.75rem)/1.12 var(--serif);
    letter-spacing: -.025em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: minmax(280px,1fr) minmax(280px,1fr);
    grid-template-rows: auto auto auto;
    column-gap: 120px;
    row-gap: 58px;
    max-width: 880px;
    margin: 0 auto 104px;
    text-align: center;
}

.calendar-card {
    width: 100%;
    min-height: 112px;
}

.calendar-card:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
}

.calendar-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.calendar-card:nth-child(3) {
    grid-column: 2;
    grid-row: 3;
}

.calendar-card h2 {
    font-size: clamp(1.45rem,1.55vw,1.85rem);
    margin: 0 0 10px;
    line-height: 1.18;
}

.calendar-card time {
    display: block;
    font-size: clamp(1.2rem,1.45vw,1.55rem);
    line-height: 1.35;
    color: #85858a;
}

.calendar-card .button {
    margin-top: 28px;
    min-width: 210px;
}

.calendar-note {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.35;
    color: #33343a;
}

@media (max-width:900px) {
    .calendar-page {
        padding-top: 52px;
        padding-bottom: 96px;
    }
    .calendar-intro {
        margin-bottom: 48px;
    }
    .calendar-grid {
        grid-template-columns: 1fr;
        row-gap: 34px;
        max-width: 560px;
        margin-bottom: 64px;
    }
    .calendar-card:nth-child(1),
  .calendar-card:nth-child(2),
  .calendar-card:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Korrektur v8: Navigationsleiste etwas größer wie in den PNG-Vorlagen. */

@media (min-width:901px) {
    .nav-wrap {
        height: 132px;
        grid-template-columns: 1fr 158px 1fr;
        gap: 30px;
        max-width: 1120px;
    }
    .brand img,
  .custom-logo {
        width: 145px;
        max-height: 92px;
    }
    .main-menu {
        gap: 34px;
    }
    .main-menu a {
        font-size: 13px;
        letter-spacing: .04em;
        padding: 14px 0 12px;
    }
}

/* Korrektur v9: Mobile Header-Klickflächen und Menüabstand. */

.brand {
    justify-self: center;
}

.brand,.brand-link,.custom-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: max-content;
}

.custom-logo-link {
    line-height: 0;
}

@media (max-width:900px) {
    .nav-wrap {
        grid-template-columns: auto auto;
        justify-content: space-between;
        align-items: center;
    }
    .brand {
        justify-self: start;
        width: auto;
        max-width: max-content;
    }
    .brand-link,.custom-logo-link {
        width: auto;
        max-width: max-content;
        padding: 0;
    }
    .menu-toggle {
        justify-self: end;
        width: 44px;
        height: 44px;
        padding: 0;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        border-radius: 0;
    }
    .menu-toggle__bar {
        display: block;
        width: 28px;
        height: 2px;
        background: var(--pink);
        transition: transform .22s ease, opacity .22s ease, background-color .22s ease;
    }
    .menu-toggle:hover .menu-toggle__bar,
  .menu-toggle:focus .menu-toggle__bar {
        background: var(--pink-dark);
    }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .menu-panels {
        padding: 0;
        margin: 0;
    }
    .menu-panels.is-open + .brand + .menu-panels.is-open,
  .menu-panels.is-open:last-child {
        padding-bottom: 18px;
    }
    .main-menu {
        margin: 0;
        padding: 0;
    }
    .main-menu li {
        margin: 0;
        padding: 0;
    }
}

/* Korrektur v10: Mobile Menü-Abstände konsequent vereinheitlichen. */

@media (max-width:900px) {
    .menu-panels,
  .menu-panels.is-open,
  .menu-panels.is-open + .brand + .menu-panels.is-open,
  .menu-panels.is-open:last-child {
        margin: 0 !important;
        padding: 0 !important;
    }
    .menu-panels.is-open {
        display: block;
    }
    .main-menu,
  .main-menu.left,
  .main-menu.right {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
    }
    .main-menu li {
        margin: 0 !important;
        padding: 0 !important;
    }
    .main-menu a {
        display: block;
        padding: 12px 0 !important;
        line-height: 1.35;
    }
}

/* Korrektur v11: Eigenes mobiles Menü für exakt gleichmäßige Abstände wie in der Vorlage. */

.desktop-menu-panel {
    display: block;
}

.mobile-menu-panel {
    display: none;
}

@media (max-width:900px) {
    .desktop-menu-panel {
        display: none !important;
    }
    .mobile-menu-panel {
        display: none;
        width: 100%;
        grid-column: 1 / -1;
        margin: 0 !important;
        padding: 0 !important;
    }
    .mobile-menu-panel.is-open {
        display: block;
    }
    .mobile-menu {
        list-style: none;
        margin: 0 !important;
        padding: 10px 0 0 !important;
    }
    .mobile-menu li {
        margin: 0 !important;
        padding: 0 !important;
    }
    .mobile-menu a {
        display: flex;
        align-items: center;
        min-height: 34px;
        padding: 0 !important;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .045em;
        line-height: 1;
        color: #1f2025;
        text-decoration: none;
    }
    .mobile-menu a:hover,
  .mobile-menu a:focus {
        color: var(--pink);
    }
    .mobile-menu .current-menu-item > a {
        color: #8b8b91;
    }
    .mobile-menu-panel .mobile-menu li + li {
        margin-top: 8px !important;
    }
}

/* Korrektur v12: Mobile Kopfzeile — Logo links und Hamburger rechts in derselben Zeile. */

@media (max-width:900px) {
    .nav-wrap {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-areas: "brand toggle"
      "mobile mobile";
        align-items: center;
    }
    .brand {
        grid-area: brand;
        order: initial !important;
    }
    .menu-toggle {
        grid-area: toggle;
        order: initial !important;
    }
    .mobile-menu-panel {
        grid-area: mobile;
        order: initial !important;
    }
}

/* Korrektur v13: Beim Öffnen des mobilen Menüs bleibt die Logo-Zeile fix stehen. */

@media (max-width:900px) {
    .nav-wrap {
        grid-template-rows: 96px auto;
        align-content: start;
        row-gap: 0;
    }
    .brand,
  .menu-toggle {
        align-self: center !important;
    }
    .brand {
        min-height: 96px;
        display: inline-flex;
        align-items: center;
    }
    .menu-toggle {
        margin: 0 !important;
    }
    .mobile-menu-panel {
        align-self: start;
    }
}

/* Korrektur v14: Mobile Kopfleiste höher und Logo vollständig sichtbar wie in der Vorlage. */

@media (max-width:900px) {
    .nav-wrap {
        min-height: 112px !important;
        grid-template-rows: 112px auto !important;
        align-items: center !important;
        overflow: visible !important;
    }
    .site-header,
  .brand,
  .brand-link,
  .custom-logo-link {
        overflow: visible !important;
    }
    .brand {
        min-height: 112px !important;
        height: 112px !important;
        align-self: center !important;
    }
    .brand img,
  .custom-logo {
        width: 126px !important;
        max-width: 126px !important;
        max-height: 86px !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
    .brand-link,
  .custom-logo-link {
        min-height: 86px !important;
        align-items: center !important;
    }
    .menu-toggle {
        align-self: center !important;
    }
}

@media (max-width:560px) {
    .nav-wrap {
        min-height: 106px !important;
        grid-template-rows: 106px auto !important;
    }
    .brand {
        min-height: 106px !important;
        height: 106px !important;
    }
    .brand img,
  .custom-logo {
        width: 120px !important;
        max-width: 120px !important;
        max-height: 82px !important;
    }
}

/* Korrektur v15: Desktop-Logo nicht beschneiden und Höhe wie Vorlage ausbalancieren. */

@media (min-width:901px) {
    .site-header,
  .nav-wrap,
  .brand,
  .brand-link,
  .custom-logo-link {
        overflow: visible !important;
    }
    .nav-wrap {
        height: 146px !important;
        grid-template-columns: 1fr 170px 1fr !important;
        align-items: center !important;
    }
    .brand {
        height: 146px !important;
        min-height: 146px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .brand-link,
  .custom-logo-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
        min-height: 96px !important;
        max-width: none !important;
        line-height: 0 !important;
        padding: 0 !important;
    }
    .brand img,
  .custom-logo {
        display: block !important;
        width: 154px !important;
        max-width: 154px !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
        margin: 0 auto !important;
    }
}

/* Korrektur v18: Inhalte werden als echte Gutenberg-Blöcke gespeichert und bleiben im Frontend pixelnah. */

.editable-page-content > .wp-block-group {
    margin-block-start: 0;
    margin-block-end: 0;
}

.editable-page-content .wp-block-columns {
    margin-bottom: 0;
}

.editable-page-content .wp-block-image {
    margin: 0;
}

.editable-page-content .wp-block-image img {
    width: 100%;
    height: auto;
}

.pink-heading {
    color: var(--pink) !important;
}

/* Korrektur v19: WP-Contact-Form exakt im Layout der Kontakt-PNG-Vorlage stylen. */

.connys-contact-form {
    width: 100%;
}

.connys-contact-form h2 {
    text-align: center;
    font-size: 2.55rem;
    margin: 0 0 48px;
}

.connys-contact-form form,
.connys-contact-form .wp-contact-form,
.connys-contact-form .wp_contact_form,
.connys-contact-form .wpcf,
.connys-contact-form .wpcf7-form {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.connys-contact-form p,
.connys-contact-form .form-row,
.connys-contact-form .form-group,
.connys-contact-form .field,
.connys-contact-form .wp-contact-form-field,
.connys-contact-form .wpcf7-form-control-wrap {
    display: block;
    margin: 0 0 28px;
    padding: 0;
}

.connys-contact-form label {
    display: block;
    margin: 0 0 28px;
    color: #777;
    font: 400 15px/1.4 var(--sans);
}

.connys-contact-form label > span:first-child,
.connys-contact-form .label,
.connys-contact-form .wp-contact-form-label {
    display: none;
}

.connys-contact-form input[type="text"],
.connys-contact-form input[type="email"],
.connys-contact-form input[type="tel"],
.connys-contact-form input[type="url"],
.connys-contact-form input[type="number"],
.connys-contact-form input[type="date"],
.connys-contact-form input[type="search"],
.connys-contact-form select,
.connys-contact-form textarea {
    width: 100%;
    min-height: 48px;
    border: 0 !important;
    border-bottom: 1px solid var(--pink) !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #666;
    padding: 13px 18px 12px !important;
    box-shadow: none !important;
    outline: 0;
    font: 400 15px/1.6 var(--sans);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.connys-contact-form textarea {
    min-height: 190px;
    resize: vertical;
}

.connys-contact-form input::placeholder,
.connys-contact-form textarea::placeholder {
    color: #8b8b91;
    opacity: 1;
}

.connys-contact-form input:focus,
.connys-contact-form select:focus,
.connys-contact-form textarea:focus {
    border-bottom-color: var(--pink-dark) !important;
    box-shadow: 0 2px 0 rgba(204,60,161,.16) !important;
}

.connys-contact-form input[type="submit"],
.connys-contact-form button[type="submit"],
.connys-contact-form .submit,
.connys-contact-form .wp-contact-form-submit,
.connys-contact-form .wpcf7-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 18px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--pink) !important;
    color: #fff !important;
    text-transform: uppercase;
    font: 800 13px/1 var(--sans) !important;
    letter-spacing: .11em;
    cursor: pointer;
    box-shadow: none !important;
    transition: background-color .22s ease, transform .22s ease;
}

.connys-contact-form input[type="submit"]:hover,
.connys-contact-form input[type="submit"]:focus,
.connys-contact-form button[type="submit"]:hover,
.connys-contact-form button[type="submit"]:focus,
.connys-contact-form .wp-contact-form-submit:hover,
.connys-contact-form .wp-contact-form-submit:focus,
.connys-contact-form .wpcf7-submit:hover,
.connys-contact-form .wpcf7-submit:focus {
    background: var(--pink-dark) !important;
    transform: translateY(-2px);
}

.connys-contact-form .error,
.connys-contact-form .wpcf7-not-valid-tip {
    color: var(--pink-dark);
    font-size: 13px;
    margin-top: 6px;
}

.connys-contact-form .success,
.connys-contact-form .wpcf7-response-output {
    margin: 24px 0 0 !important;
    padding: 14px 18px !important;
    border: 1px solid rgba(204,60,161,.35) !important;
    color: #555;
    background: #fff7fc;
}

@media (max-width:900px) {
    .connys-contact-form h2 {
        font-size: 2.25rem;
        margin-bottom: 34px;
    }
}

/* Korrektur v20: DSGVO-konforme Schriftanpassung ohne externe Font-Aufrufe.
   Es werden ausschließlich lokale Systemschriftarten und sichere Fallbacks verwendet. */

body {
    font-family: var(--sans);
    font-weight: 400;
    letter-spacing: .005em;
}

h1,h2,h3,
.lead,
.calendar-intro,
.hero h1,
.events-teaser h2,
.cta-band h2,
.facebook-band h2,
.legal-content h1,
.legal-content h2,
.connys-contact-form h2 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.035em;
}

.hero h1 {
    font-family: var(--serif) !important;
    font-weight: 400 !important;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.hero em {
    font-family: var(--serif);
    font-style: italic;
}

.lead,
.calendar-intro {
    font-weight: 400;
    line-height: 1.08;
}

h2 {
    line-height: 1.08;
}

h3 {
    line-height: 1.12;
}

.copy p,
.market-row p,
.legal-content p,
.legal-content li,
.contact-box p,
.calendar-card time {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.78;
    font-weight: 400;
    letter-spacing: .005em;
}

.main-menu a,
.mobile-menu a,
.footer-menu a,
.button,
.wp-block-button__link,
.hero__notice,
.pink-card p,
.cta-band p,
.facebook-band p,
.connys-contact-form input,
.connys-contact-form textarea,
.connys-contact-form select,
.connys-contact-form label,
.connys-contact-form input[type="submit"],
.connys-contact-form button[type="submit"] {
    font-family: var(--sans) !important;
}

.main-menu a,
.mobile-menu a {
    font-weight: 700;
    letter-spacing: .035em;
}

.signature {
    font-family: var(--script);
    font-weight: 400;
    letter-spacing: 0;
}

@media (max-width:900px) {
    .hero h1 {
        line-height: 1.12;
        letter-spacing: -.03em;
    }
}

/* Korrektur v21: Logo mit zusätzlichem Innenraum unten vollständig anzeigen wie in der Vorlage. */

.site-header,
.nav-wrap,
.brand,
.brand-link,
.custom-logo-link {
    overflow: visible !important;
}

.brand img,
.custom-logo {
    display: block !important;
    object-fit: contain !important;
    object-position: center center !important;
    clip-path: none !important;
}

@media (min-width:901px) {
    .nav-wrap {
        height: 150px !important;
        grid-template-columns: 1fr 176px 1fr !important;
    }
    .brand {
        height: 150px !important;
        min-height: 150px !important;
    }
    .brand-link,
  .custom-logo-link {
        min-height: 106px !important;
    }
    .brand img,
  .custom-logo {
        width: 154px !important;
        max-width: 154px !important;
        height: auto !important;
        max-height: none !important;
    }
}

@media (max-width:900px) {
    .nav-wrap {
        min-height: 118px !important;
        grid-template-rows: 118px auto !important;
    }
    .brand {
        min-height: 118px !important;
        height: 118px !important;
    }
    .brand-link,
  .custom-logo-link {
        min-height: 96px !important;
    }
    .brand img,
  .custom-logo {
        width: 126px !important;
        max-width: 126px !important;
        height: auto !important;
        max-height: none !important;
    }
}

@media (max-width:560px) {
    .nav-wrap {
        min-height: 112px !important;
        grid-template-rows: 112px auto !important;
    }
    .brand {
        min-height: 112px !important;
        height: 112px !important;
    }
    .brand-link,
  .custom-logo-link {
        min-height: 90px !important;
    }
    .brand img,
  .custom-logo {
        width: 120px !important;
        max-width: 120px !important;
    }
}

/* Korrektur v22: Logo in Desktop und Mobile vollständig sichtbar wie in der Vorlage.
   Die Größe wird über die tatsächliche Bildhöhe gesteuert, nicht über max-height-Clipping. */

.site-header {
    overflow: visible !important;
}

.brand,
.brand-link,
.custom-logo-link {
    overflow: visible !important;
    line-height: 0 !important;
}

.brand img,
.custom-logo {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    clip-path: none !important;
    border: 0 !important;
}

@media (min-width:901px) {
    .nav-wrap {
        height: 148px !important;
        min-height: 148px !important;
        grid-template-columns: 1fr 176px 1fr !important;
        align-items: center !important;
        overflow: visible !important;
    }
    .brand {
        height: 148px !important;
        min-height: 148px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }
    .brand-link,
  .custom-logo-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 160px !important;
        height: 118px !important;
        min-height: 118px !important;
        padding: 0 !important;
    }
    .brand img,
  .custom-logo {
        width: 150px !important;
        max-width: 150px !important;
        transform: translateY(-1px);
    }
}

@media (max-width:900px) {
    .nav-wrap {
        min-height: 120px !important;
        grid-template-rows: 120px auto !important;
        align-items: center !important;
        overflow: visible !important;
    }
    .brand {
        height: 120px !important;
        min-height: 120px !important;
        align-items: center !important;
        padding: 0 !important;
    }
    .brand-link,
  .custom-logo-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 132px !important;
        height: 100px !important;
        min-height: 100px !important;
        padding: 0 !important;
    }
    .brand img,
  .custom-logo {
        width: 126px !important;
        max-width: 126px !important;
        transform: translateY(-1px);
    }
}

@media (max-width:560px) {
    .nav-wrap {
        min-height: 116px !important;
        grid-template-rows: 116px auto !important;
    }
    .brand {
        height: 116px !important;
        min-height: 116px !important;
    }
    .brand-link,
  .custom-logo-link {
        width: 126px !important;
        height: 96px !important;
        min-height: 96px !important;
    }
    .brand img,
  .custom-logo {
        width: 120px !important;
        max-width: 120px !important;
    }
}

/* Korrektur v23: Logo-Rahmen unten vollständig geschlossen und Header ohne Clipping. */

.site-header,
.nav-wrap,
.brand,
.brand-link,
.custom-logo-link {
    overflow: visible !important;
}

.brand,
.brand-link,
.custom-logo-link {
    line-height: 0 !important;
}

.brand-link,
.custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.brand img,
.custom-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    clip-path: none !important;
    transform: none !important;
}

@media (min-width:901px) {
    .nav-wrap {
        height: 154px !important;
        min-height: 154px !important;
        grid-template-columns: 1fr 176px 1fr !important;
        align-items: center !important;
    }
    .brand {
        height: 154px !important;
        min-height: 154px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }
    .brand-link,
  .custom-logo-link {
        width: 154px !important;
        height: 118px !important;
        min-height: 118px !important;
        padding: 0 !important;
    }
    .brand img,
  .custom-logo {
        width: 150px !important;
        max-width: 150px !important;
    }
}

@media (max-width:900px) {
    .nav-wrap {
        min-height: 122px !important;
        grid-template-rows: 122px auto !important;
        align-items: center !important;
    }
    .brand {
        height: 122px !important;
        min-height: 122px !important;
        align-items: center !important;
        padding: 0 !important;
    }
    .brand-link,
  .custom-logo-link {
        width: 128px !important;
        height: 100px !important;
        min-height: 100px !important;
        padding: 0 !important;
    }
    .brand img,
  .custom-logo {
        width: 122px !important;
        max-width: 122px !important;
    }
}

@media (max-width:560px) {
    .nav-wrap {
        min-height: 118px !important;
        grid-template-rows: 118px auto !important;
    }
    .brand {
        height: 118px !important;
        min-height: 118px !important;
    }
    .brand-link,
  .custom-logo-link {
        width: 124px !important;
        height: 96px !important;
        min-height: 96px !important;
    }
    .brand img,
  .custom-logo {
        width: 118px !important;
        max-width: 118px !important;
    }
}
