/*
Theme Name: Kinderschutzbund
Author: Petra Kufleitner
Description: Individuelles Theme für den Kinderschutzbund
Version: 1.0
*/

/* -----------------------------
CSS Reset / Basis
----------------------------- */

* {
    box-sizing: border-box;
    }
    
    body {
    margin: 0;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 19px;
    line-height: 1.6;
    color: #555E68;
    background: #ffffff;
    }
    
    img {
    max-width: 100%;
    height: auto;
    display: block;
    }
    
    a {
    color: inherit;
    text-decoration: none;
    }
    
    /* -----------------------------
    Farben als Variablen
    ----------------------------- */
    
    :root {
    --blue: #0064AD;
    --orange: #EC7C32;
    --purple: #9D5276;
    --green: #00AE97;
    --pink: #FCE4D6;
    --black: #222222;
    --gray-dark: #555E68;
    --gray-light: #E9E9EB;
    }
    
    /* -----------------------------
    Container
    ----------------------------- */
    
    .container {
        width: min(1200px, 92%);
        margin: 0 auto;
      }
    
    /* -----------------------------
    Typografie
    ----------------------------- */
    
    h1, h2, h3, h4, h5, h6 {
    font-family: 'Blogger Sans', sans-serif;
    color: var(--black);
    margin-top: 0;
    }
    
    h1 { font-size: 50px; }
    h2 { font-size: 39px; }
    h3 { font-size: 25px; }
    h4 { font-size: 22px; }
    h5 { font-size: 19px; }
    h6 { font-size: 18px; }
    
    @media (max-width: 640px) {
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 22px; }
    }
    
/* -----------------------------
Header
----------------------------- */

.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
  }
  
  .logo {
    font-family: 'Blogger Sans', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #0064AD;
    text-decoration: none;
  }
    
    /* Navigation */
    
/* Hauptnavigation */

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .main-nav li {
    position: relative;
  }
  
  .main-nav a {
    font-family: "Blogger Sans", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #0064AD;
    text-decoration: none;
    padding: .3rem 0;
    position: relative;
    transition: color .2s ease;
  }
    
  /* Hover öffnet Dropdown */
  

  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: #EC7C32;
    transition: width .25s ease;
  }
  
  .main-nav a:hover::after {
    width: 100%;
  }

  .current-menu-item > a::after,
.current-menu-ancestor > a::after {
  width: 100%;
}

.main-nav ul ul {
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    text-align: left;
    display: flex;
    flex-direction: column;
  
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
  }


  .main-nav li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav ul ul a {
    display: block;

    font-size: 16px;
    color: #0064AD;
    text-decoration: none;
  }
  
 

  .main-nav .sub-menu .menu-item {
    width: 100%;
  }


  .current-menu-item > a::after,
.current-menu-parent > a::after,
.current-menu-ancestor > a::after {
  width: 100%;
}


/* -----------------------------
Mobile Navigation
----------------------------- */

.nav-toggle {
    display: none;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    }
    
    @media (max-width: 900px) {
    
    .nav-toggle {
    display: block;
    }
    
    .main-nav {
    position: fixed;
    inset: 0;
    background: #ffffff;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    }
    
    .main-nav.is-open {
    transform: translateX(0);
    }
    
    .main-nav ul {
    flex-direction: column;
    gap: 2rem;
    }
    
    .main-nav a {
    font-size: 24px;
    }
    }
    

/* -----------------------------
    Hero Bereich
----------------------------- */

.hero {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    color: #ffffff;
  
    /* Hier passiert die Magie */
    clip-path: ellipse(120% 85% at 50% 14%);
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 60, 110, 0.55);
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
  }
  
  .hero h1 {
    font-size: 54px;
    color: #fff;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 20px;
    margin-bottom: 2rem;
  }
  


.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 500;
    transition: all .25s ease;
    color: white;
}

.btn-primary {
    background: var(--orange);
    color: #ffffff;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
}


/* -----------------------------
Aktuelles
----------------------------- */

.aktuelles {
    padding: 4rem 0;
    }
    
    .aktuelles-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 0;
    margin: 3rem 0 0;
    }

    .aktuelles h2 {
        border-bottom: 1px solid #ddd;
        color: var(--blue);
        font-size: 32px;
        font-weight: normal;
      }
    
    .aktuelles-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    }
    
    .aktuelles-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
    }
    
    .aktuelles-card h3 {
        margin-bottom: 10px;
        color: var(--blue);
        font-weight: normal;
        font-size: 24px;
    
    }
    
    .aktuelles-card p {
        color: var(--gray-dark);
        line-height: 1.4;
        margin: 0;
    }
    
    .aktuelles-card a {
    display: block;
    height: 100%;
    }

    .card-image img {
        width: 100%;
        border-radius: 14px 14px 0 0;
        max-height: 200px;
        object-fit: cover;
      }
      
      .card-body {
        padding: 1.6rem;
      }
      
      .card-link {
        color: var(--blue);
        font-weight: 500;
        margin-top: 10px;
        display: block;
      }
    
    /* Responsive */
    
    @media (max-width: 900px) {
    .aktuelles-list {
    grid-template-columns: 1fr;
    }
    }
    
    /* -----------------------------
Angebote
----------------------------- */

.angebote {
    padding: 1rem 0;
}
    
.angebote h2 {
    border-bottom: 1px solid #ddd;
    color: var(--blue);
    font-size: 32px;
    font-weight: normal;
}

.angebote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
    
  .angebot {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    height: 100%;
    transform: translateY(0);
  }
  
  /* Hover Effekt */
  
  .angebot:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  }
      
      /* Gradient Top Border */

/* Basislinie oben */

.angebot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    border-radius: 5px 5px 0 0;
  }
  

  .angebot .btn-secondary {
    transition: all .25s ease;
  }
  
  .angebot:hover .btn-secondary {
    transform: translateY(-2px);
  }

  /* ORANGE */

.angebot-orange::before {
    background: linear-gradient(90deg,#EC7C32,#FCE4D6);
  }
  
  /* GRÜN */
  
  .angebot-green::before {
    background: linear-gradient(90deg,#00AE97,#A8E6CF);
  }
  
  /* BLAU */
  
  .angebot-blue::before {
    background: linear-gradient(90deg,#0064AD,#6FB7E9);
  }

  .angebot-orange:hover::before {
    background: linear-gradient(90deg,#EC7C32,#FFB27A);
  }
  
  .angebot-green:hover::before {
    background: linear-gradient(90deg,#00AE97,#63E0CF);
  }
  
  .angebot-blue:hover::before {
    background: linear-gradient(90deg,#0064AD,#8AC5F0);
  }

/* ORANGE */

.angebot-orange {
    background: linear-gradient(135deg, #ffffff, #FFF4EC);
  }
  
  
  /* GRÜN */
  
  .angebot-green {
    background: linear-gradient(135deg, #ffffff, #E8F9F6);
  }
  
  
  /* BLAU */
  
  .angebot-blue {
    background: linear-gradient(135deg, #ffffff, #EEF6FD);
  }

  .angebot-orange:hover .btn-secondary {
    background: #EC7C32;
    color: #ffffff;
    border-color: #EC7C32;
  }

  .angebot-green:hover .btn-secondary {
    background: #00AE97;
    color: #ffffff;
    border-color: #00AE97;
  }

  .angebot-blue:hover .btn-secondary {
    background: #0064AD;
    color: #ffffff;
    border-color: #0064AD;
  }
  .angebot-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  
  .angebot-icon img {
    width: 100%;
    height: 100%;
  }

  .angebot-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    justify-content: center;
  }
  
  .angebot-header h3 {
    margin: 0;
  }
    .angebot h3 {
        margin-bottom: 0;
        text-align: center;
        font-weight: normal;
        color: var(--blue);
    }
    
    .angebot p {
    flex-grow: 1;
    margin-bottom: 1rem;
    line-height: normal;
    font-size: 19px;
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* Anzahl der Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    }
    
    .btn-secondary {
        margin-top: auto;
        padding: 10px 22px;
        border-radius: 5px;
        font-weight: 500;
        transition: all .25s ease;
    }


    .btn-secondary:hover {
    background: var(--blue);
    color: #ffffff;
    }
    .angebot:hover .btn-secondary {
        transform: translateY(-2px);
      }

    /* ORANGE */

.angebot-orange .btn-secondary {
    border: 2px solid #EC7C32;
    color: #EC7C32;
  }
  
  .angebot-orange .btn-secondary:hover {
    background: #EC7C32;
    color: #ffffff;
  }
  
  
  /* GRÜN */
  
  .angebot-green .btn-secondary {
    border: 2px solid #00AE97;
    color: #00AE97;
  }
  
  .angebot-green .btn-secondary:hover {
    background: #00AE97;
    color: #ffffff;
  }
  
  
  /* BLAU */
  
  .angebot-blue .btn-secondary {
    border: 2px solid #0064AD;
    color: #0064AD;
  }
  
  .angebot-blue .btn-secondary:hover {
    background: #0064AD;
    color: #ffffff;
  }
    /* Responsive */
    
    @media (max-width: 900px) {
    .angebote-grid {
    grid-template-columns: 1fr;
    }
    }


    /* -----------------------------
Veranstaltungen
----------------------------- */

.veranstaltungen {
    padding: 6rem 0;
    }
    
.veranstaltungen h2 {
    border-bottom: 1px solid #ddd;
    color: var(--blue);
    font-size: 32px;
    font-weight: normal;
}

    .veranstaltungen-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 0;
    }
    
    .event {
        background: #ffffff;
        border-radius: 18px;
        padding: 0 10px 0 0;
        box-shadow: 0 10px 28px rgba(0,0,0,0.08);
        transition: transform .25s ease, box-shadow .25s ease;
      }
    
    .event:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    }

    .event-link {
        display: grid;
        grid-template-columns: 70px 1fr;
        gap: 20px;
        align-items: center;
        color: inherit;
        text-decoration: none;
        height: 100%;
    }
    
    .event-date {
        background: var(--blue);
        color: #fff;
        border-radius: 10px;
        padding: 12px;
        text-align: center;
        line-height: normal;
      }
      
      .event-date strong {
        font-size: 26px;
        display: block;
        line-height: 25px;
      }
      
      .event-date span {
        font-size: 13px;
        letter-spacing: 1px;
        line-height: normal;
        display: flex;
        flex-flow: row;
        justify-content: center;
      }
    
      .event-info h3 {
        margin: 0;
        font-size: 19px;
        font-weight: normal;
        color: var(--blue);
        line-height: normal;
        border-bottom: 1px solid #ddd;
        padding-bottom: 2px;
      }

      .event-info p {
        margin: 0;
        font-size: 16px;
      }

    @media (max-width: 900px) {
    .veranstaltungen-list {
        grid-template-columns: 1fr;
    }
    }

    
    /* -----------------------------
Unterstützen CTA
----------------------------- */

.unterstuetzen {
    position: relative;
    background: linear-gradient(135deg, #0064AD, #00AE97, #EC7C32);
    padding: 8rem 0;
    text-align: center;
    clip-path: ellipse(120% 90% at 50% 90%);
  }
  
  .support-wave-top {
    position: absolute;
    top: -100px;
    width: 100%;
    height: 100px;
  }
  
  .support-wave-top svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  .unterstuetzen {
    position: relative;
    overflow: hidden;
  }
    
    .unterstuetzen h2 {
    color: #ffffff;
    margin-bottom: 1.2rem;
    }
    
    .unterstuetzen p {
    max-width: 640px;
    margin: 0 auto 3rem;
    font-size: 20px;
    }
    
    .unterstuetzen-actions {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    }
    
    .btn-outline {
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
    }
    
    .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    }
    
    @media (max-width: 640px) {
    .unterstuetzen-actions {
    flex-direction: column;
    }
    }

    
    /* -----------------------------
Footer
----------------------------- */

.site-footer {
    background: #003A6D;
    padding: 5rem 0 2rem;
  }
    
    .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    }
    
    .footer-block h4 {
    font-family: 'Blogger Sans', sans-serif;
    margin-bottom: 1rem;
    color: var(--pink);
    }
    
    .footer-block p,
    .footer-block li {
    font-size: 17px;
    color: #ffffff;
    line-height: 1.5;
    }
    
    .footer-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    }
    
    .footer-block a {
    color: #ffffff;
    transition: color .2s ease;
    }
    
    .footer-block a:hover {
    color: var(--orange);
    }
    
    .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    padding: 1.6rem 1rem;
    font-size: 14px;
    opacity: 0.8;
    color: #ffffff;
    }
    
/* -----------------------------
   Event Detailseite
----------------------------- */

.event-detail {
    padding: 6rem 0;
  }
  
  .event-back {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--blue);
    font-weight: 500;
  }
  
  .event-back:hover {
    text-decoration: underline;
  }
  
  .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1.5rem 0 3rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 14px;
  }
  
  .event-meta-item strong {
    margin-right: .5rem;
  }
  
  .event-content {
    max-width: 720px;
  }


  .post-detail {
    padding: 5rem 0;
  }
  
  .post {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .breadcrumb {
    font-size: 14px;
    color: #A2A8B4;
    margin-bottom: 1rem;

  }
  
  .breadcrumb a {
    color: #0064AD;
    text-decoration: none;
  }
  
  .post-back {
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 500;
    color: #0064AD;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    width: 100%;
  }
  
  .post-back:hover {
    text-decoration: underline;
  }
  
  .post-title {
    margin-bottom: .6rem;
  }
  
  .post-date {
    color: #A2A8B4;
    font-size: 15px;
    margin-bottom: 2rem;
  }
  
  .post-image {
    margin: 2.5rem 0 3rem;
  }
  
  .post-image img {
    width: 100%;
    max-height: 380px;   /* kleiner */
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  }
  
  .post-content {
    font-size: 19px;
    line-height: 1.7;
  }
  
  .post-content p {
    margin-bottom: 1.6rem;
  }
  .post-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E9E9EB;
    display: flex;
    gap: 1.2rem;
    align-items: center;
  }
  
  .post-share a {
    text-decoration: none;
    font-weight: 500;
    color: #0064AD;
  }
  
  .post-share a:hover {
    color: #EC7C32;
  }

  .post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E9E9EB;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }
  
  .post-navigation a {
    text-decoration: none;
    font-weight: 500;
    color: #0064AD;
    transition: all .2s ease;
  }
  
  .post-navigation a:hover {
    color: #EC7C32;
  }



  .page-content {
    padding: 5rem 0;
  }

  
  .page-text {
    line-height: 1.7;
    font-size: 18px;
  }
  
  .page-text p {
    margin-bottom: 1.5rem;
  }

    /* Responsive */
    
    @media (max-width: 900px) {
    .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    }
    }
    
    @media (max-width: 540px) {
    .footer-grid {
    grid-template-columns: 1fr;
    }
    }
    

    section {
        padding:6rem 0;
    }

    .card, .angebot, .event {
        transition: transform .25s ease, box-shadow .25s ease;
    }

    a:focus-visible, button:focus-visible {
        outline: 3px solid var(--orange);
        outline-offset: 4px;
    }  