/*
  WeidauerNet – handgeschriebenes Stylesheet
  Nachbau des bisherigen WordPress-Auftritts (Theme "Bulk" + Elementor)
  als schlanke statische Seite – ohne CMS, ohne Frameworks.

  Farben:
    Beige Grundfläche  #EBE8DE
    Dunkles Grau       #2f2f2f
    Weinrot (Akzent)   #80100F
    Heller Text        #EAEAEA
*/

/* ---------- Schriften (selbst gehostet, DSGVO-freundlich) ---------- */

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/roboto-condensed-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/roboto-condensed-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/roboto-condensed-italic-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/roboto-condensed-italic-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Grundgerüst ---------- */

* ,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #EAEAEA;
    background-color: #2f2f2f;
    word-wrap: break-word;
    overflow-x: hidden;
}

a,
a:active,
a:hover,
a:focus {
    color: #80100F;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

iframe {
    max-width: 100%;
    border: 0;
}

ul,
ol {
    padding-left: 20px;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    margin: 10px 0;
}

.sr-only {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ---------- Kopfbereich / Navigation ---------- */

.main-menu {
    position: relative;
}

#site-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: 70px;
    background-color: #EBE8DE;
    box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.42),
                0 3px 20px 0 rgba(0, 0, 0, 0.12),
                0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-header {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-branding-logo a {
    display: block;
}

.site-branding-logo img {
    max-height: 70px;
    width: auto;
    padding-right: 10px;
    display: block;
}

.site-branding-text {
    padding: 10px 15px;
}

.site-title {
    margin: 0;
    padding: 0;
    font-size: 22px;
    line-height: 28px;
    font-weight: 500;
}

.site-title a {
    color: #2f2f2f;
}

.site-description {
    margin: 0;
    font-size: 13px;
    line-height: 18px;
    color: #2f2f2f;
}

.menu-container {
    margin-left: auto;
}

.menu-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu-container a {
    display: block;
    padding: 25px 15px;
    color: #2f2f2f;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.menu-container a:hover,
.menu-container a:focus,
.menu-container .active a {
    color: #000;
}

/* Hamburger – nur mobil sichtbar */
.open-panel {
    display: none;
    background: none;
    border: 0;
    padding: 0;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 25px;
    right: 22px;
    cursor: pointer;
    z-index: 102;
}

.open-panel span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #000;
    left: 0;
    transition: 0.25s ease-in-out;
}

.open-panel span:nth-child(1) { top: 0; }
.open-panel span:nth-child(2) { top: 9px; }
.open-panel span:nth-child(3) { top: 18px; }

.open-panel.open span:nth-child(1) {
    transform: rotate(45deg);
    top: -2px;
    left: 3px;
}

.open-panel.open span:nth-child(2) {
    width: 0;
    opacity: 0;
}

.open-panel.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 21px;
    left: 3px;
}

/* ---------- Seiteninhalt ---------- */

.page-area {
    padding-top: 70px;
    background: #EBE8DE;
    color: #000;
}

.spacer {
    height: 25px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
}

.col-third {
    width: 33.333%;
    padding: 10px;
}

.col-heading {
    font-size: 18px;
    font-weight: 700;
    text-decoration: underline;
    margin: 0;
}

/* Mobile Ersatz-Überschriften: auf dem Desktop ausgeblendet,
   dort steht die separate Überschriften-Zeile darüber. */
.col-heading-mobile {
    display: none;
}

.address-block p {
    margin: 0 0 16px 0;
}

.address-block em {
    display: block;
}

.linklist {
    margin: 0;
}

.maps-embed iframe {
    width: 100%;
    height: 164px;
    display: block;
}

/* ---------- Webcam-Bereich ---------- */

.webcam-heading {
    margin: -20px 0 6px;
}

.webcam-heading h2 {
    margin: 0;
    font-size: 18px;
    text-align: center;
    color: #80100F;
    font-weight: 600;
}

.webcam-banner {
    text-align: center;
}

.webcam-banner a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.webcam-banner a:hover {
    transform: scale(0.9);
}

/* ---------- Werbebanner / Hinweistext ---------- */

.ad-banner {
    text-align: center;
    padding: 10px 0;
}

.site-note {
    text-align: center;
}

.site-note p {
    font-size: 14px;
    font-weight: 500;
    margin: 10px 0;
}

/* ---------- Partnerzeile ---------- */

.partners {
    align-items: center;
}

.partner-text {
    width: 36.964%;
    padding: 10px;
    text-align: right;
    color: #80100F;
}

.partner-text .partner-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
}

.partner-text p {
    margin: 0;
}

.partner-logo {
    width: 13.036%;
    padding: 10px;
}

.partner-logo a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.partner-logo a:hover {
    transform: scale(1.1);
}

/* ---------- Fußzeile ---------- */

.footer-credits {
    border-top: 1px solid #ccc;
    padding: 15px;
    background-color: #2f2f2f;
}

.footer-credits-text {
    margin: 0;
    text-align: center;
    color: #EAEAEA;
}

/* ---------- Unterseiten (Code13 / Impressum) ---------- */

.page-content {
    padding-bottom: 40px;
}

.page-content h1 {
    font-weight: 700;
}

.red-heading {
    color: #80100F;
}

.lead {
    font-size: 18px;
}

.col-half {
    width: 50%;
    padding: 10px;
}

.code13-preview a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.code13-preview a:hover {
    transform: scale(1.02);
}

.code13-preview img {
    display: block;
    box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.56),
                0 4px 25px 0 rgba(0, 0, 0, 0.12),
                0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

.btn-row {
    text-align: right;
    padding: 20px 10px;
}

.btn-danger {
    display: inline-block;
    background-color: #d9534f;
    color: #fff;
    padding: 12px 24px;
    border-radius: 3px;
    font-size: 15px;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background-color: #80100F;
    color: #fff;
}

/* ---------- Einblend-Animationen (wie im Original) ---------- */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translate3d(100%, 0, 0); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale3d(0.3, 0.3, 0.3); opacity: 0; }
    50%  { opacity: 1; }
    to   { transform: none; opacity: 1; }
}

.anim {
    animation-duration: 2s;
    /* "backwards" statt "both": Nach Ende der Animation darf der
       Hover-Effekt (transform) wieder greifen – mit "both" blockiert
       der letzte Keyframe dauerhaft das Hover-Transform. */
    animation-fill-mode: backwards;
}

.anim-fade-1 { animation-name: fadeIn; animation-delay: 0.1s; }
.anim-fade-2 { animation-name: fadeIn; animation-delay: 0.2s; }
.anim-fade-3 { animation-name: fadeIn; animation-delay: 0.4s; }
.anim-zoom   { animation-name: zoomIn; animation-delay: 1.5s; animation-duration: 1s; }
.anim-slide  { animation-name: slideInRight; animation-delay: 3s; animation-duration: 1s; }

@media (prefers-reduced-motion: reduce) {
    .anim {
        animation: none;
    }
    .webcam-banner a,
    .partner-logo a,
    .code13-preview a {
        transition: none;
    }
}

/* ---------- Desktop-Feinheiten ---------- */

@media (min-width: 768px) {
    .webcam-heading h2 {
        margin-left: 380px;
    }
}

/* Tablet: Logo und Menü kompakter, damit die Navigation einzeilig bleibt */
@media (min-width: 768px) and (max-width: 1120px) {
    .site-branding-logo img {
        max-height: 40px;
    }

    .site-title {
        font-size: 20px;
        line-height: 24px;
    }

    .menu-container a {
        padding: 20px 10px;
    }
}

/* ---------- Mobil ---------- */

@media (max-width: 767px) {
    .open-panel {
        display: block;
    }

    .site-header {
        padding-right: 55px;
    }

    .menu-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        transform: translate3d(-100%, 0, 0);
        transition: transform 500ms ease;
        overflow-y: auto;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    body.openNav .menu-container {
        transform: translate3d(0, 0, 0);
    }

    .menu-container ul {
        flex-direction: column;
        padding: 0;
    }

    .menu-container a {
        padding: 12px 10px;
        font-size: 14px;
        line-height: 16px;
        border-bottom: 1px solid #eee;
    }

    .menu-container a:hover,
    .menu-container a:focus {
        color: #fff;
        background-color: #000;
    }

    .col-third,
    .col-half,
    .partner-text,
    .partner-logo {
        width: 100%;
    }

    .partner-text {
        text-align: center;
    }

    .partner-logo {
        text-align: center;
    }

    .headings-row {
        display: none;
    }

    .col-heading-mobile {
        display: block;
        font-weight: 700;
        text-decoration: underline;
        margin: 0 0 10px 0;
    }

    .webcam-heading {
        margin: 0 0 6px;
    }

    .webcam-heading h2 {
        margin-left: 0;
    }

    .btn-row {
        text-align: center;
    }
}
