/* ============================================================
   Hunde-Such-Hilfe Österreich – Hauptstylesheet
   ============================================================ */

:root {
    --green-dark:    #2d6a1f;
    --green-mid:     #4caf30;
    --green-bright:  #7ed321;
    --green-light:   #b8e986;
    --green-pale:    #f0f9ea;
    --beige:         #f5f0e0;
    --beige-dark:    #e8dfc0;
    --text-dark:     #1e2a14;
    --text-body:     #3a4a2e;
    --text-muted:    #6b7c5a;
    --white:         #ffffff;
    --shadow-sm:     0 2px 8px rgba(45,106,31,.12);
    --shadow-md:     0 6px 24px rgba(45,106,31,.18);
    --shadow-lg:     0 16px 48px rgba(45,106,31,.22);
    --radius:        14px;
    --radius-lg:     24px;
    --font-display:  'Caveat', cursive;
    --font-body:     'Nunito', sans-serif;
    --transition:    .25s ease;
    --header-h:      72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--white);
    line-height: 1.7;
    padding-top: var(--header-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-bright); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(45,106,31,.15);
    z-index: 1000;
    border-bottom: 3px solid var(--green-bright);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--green-dark);
    font-weight: 700;
}
.logo-sub {
    font-size: .75rem;
    font-weight: 800;
    color: var(--green-mid);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-dark);
    transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    background: var(--green-pale);
    color: var(--green-dark);
}
.main-nav .nav-fb {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1877f2;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 8px;
}
.main-nav .nav-fb:hover { background: #1461cc; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--green-dark);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 50%, var(--green-bright) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '🐾';
    position: absolute;
    font-size: 220px;
    opacity: .07;
    right: -30px;
    top: -20px;
    transform: rotate(15deg);
    line-height: 1;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.hero p {
    font-size: 1.15rem;
    opacity: .92;
    max-width: 540px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-logo {
    width: 200px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.3));
    animation: floatLogo 4s ease-in-out infinite;
}
@keyframes floatLogo {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    line-height: 1;
}
.btn-primary {
    background: var(--white);
    color: var(--green-dark);
    border-color: var(--white);
}
.btn-primary:hover {
    background: var(--green-pale);
    color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
    background: rgba(255,255,255,.15);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-green {
    background: var(--green-mid);
    color: var(--white);
    border-color: var(--green-mid);
}
.btn-green:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-spenden-sm {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 22px;
    background: var(--green-bright);
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 800;
    font-size: .9rem;
    transition: all var(--transition);
}
.btn-spenden-sm:hover {
    background: var(--green-mid);
    color: var(--white);
    transform: translateY(-1px);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--green-pale); }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--green-dark);
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-mid), var(--green-bright));
    border-radius: 2px;
    margin: 14px auto 0;
}

/* ============================================================
   MISSION / FEATURES
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(126,211,33,.15);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 18px;
    display: block;
}
.feature-card h3 {
    font-size: 1.2rem;
    color: var(--green-dark);
    margin-bottom: 10px;
    font-weight: 800;
}
.feature-card p {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.6;
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(126,211,33,.12);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--green-mid), var(--green-bright));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-date {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}
.blog-card h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.3;
}
.blog-card p {
    color: var(--text-muted);
    font-size: .92rem;
    flex: 1;
    line-height: 1.6;
}
.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    font-weight: 800;
    font-size: .9rem;
    color: var(--green-dark);
}
.blog-card-link::after { content: ' →'; }
.blog-card-link:hover { color: var(--green-bright); }

/* ============================================================
   SPENDEN SECTION
   ============================================================ */
.spenden-hero {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.spenden-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 16px;
}
.spenden-hero p { opacity: .9; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.spenden-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.spenden-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--green-mid);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.spenden-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.spenden-card .icon { font-size: 2.5rem; margin-bottom: 16px; }
.spenden-card h3 { color: var(--green-dark); font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.spenden-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }
.spenden-card code {
    display: block;
    background: var(--green-pale);
    border: 1px solid var(--green-light);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .85rem;
    color: var(--text-dark);
    word-break: break-all;
    font-family: monospace;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}
.contact-info h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--green-dark);
    margin-bottom: 16px;
}
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }
.contact-details { list-style: none; }
.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 1rem;
}
.contact-details .ci-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-form-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(126,211,33,.15);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--beige-dark);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(76,175,48,.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: .95rem;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 10px;
}
.page-hero p { opacity: .85; font-size: 1rem; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-body {
    max-width: 760px;
    margin: 60px auto;
    padding: 0 24px;
}
.post-body h2,
.post-body h3 { color: var(--green-dark); margin: 28px 0 12px; font-family: var(--font-display); }
.post-body p { margin-bottom: 16px; }
.post-body img { border-radius: var(--radius); margin: 24px 0; }
.post-body ul,
.post-body ol { margin: 12px 0 16px 24px; }
.post-body li { margin-bottom: 6px; }

/* ============================================================
   ÜBER UNS
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-img-wrap {
    position: relative;
}
.about-img-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--green-mid);
    color: var(--white);
    padding: 16px 22px;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: .9rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    line-height: 1.3;
}
.about-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--green-dark);
    margin-bottom: 16px;
}
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-text ul { list-style: none; margin-bottom: 24px; }
.about-text ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--beige-dark);
    color: var(--text-body);
    display: flex;
    gap: 8px;
}
.about-text ul li::before { content: '🐾'; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,.75);
    padding-top: 0;
}
.footer-paws {
    background: var(--green-dark);
    padding: 10px 0;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 4px;
    opacity: .6;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 56px 24px 40px;
}
.footer-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 14px;
}
.footer-tagline { font-size: .9rem; margin-bottom: 6px; }
.footer-zvr { font-size: .78rem; opacity: .5; }
.footer-col h4 {
    color: var(--green-bright);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
    margin-bottom: 10px;
    font-size: .9rem;
    line-height: 1.5;
}
.footer-col a {
    color: rgba(255,255,255,.7);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--green-bright); }
.fb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: .85rem; }
.powered-by {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.5) !important;
    font-size: .82rem;
    transition: opacity var(--transition);
}
.powered-by:hover { opacity: .85; color: rgba(255,255,255,.5) !important; }
.webatelier-logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(.5);
    border-radius: 4px;
}
.powered-by strong { color: rgba(255,255,255,.7); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    background: var(--white);
    border: 2px solid var(--beige-dark);
    color: var(--text-dark);
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--green-mid); color: var(--green-dark); }
.pagination .current { background: var(--green-mid); border-color: var(--green-mid); color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-logo { width: 140px; margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .about-badge { position: static; margin-top: 16px; display: inline-block; }
    .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--white);
        padding: 20px 24px;
        box-shadow: var(--shadow-lg);
        gap: 4px;
        z-index: 999;
        border-top: 2px solid var(--green-bright);
    }
    .nav-toggle { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}
