/* --- Premium Design CSS für Hundemeeting --- */

/* --- CSS Variablen für Farben --- */
:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --primary-light: #6ba3e8;
    --secondary-color: #f39c12;
    --success-color: #27ae60;
    --warning-color: #e74c3c;
    --dark-gray: #2c3e50;
    --medium-gray: #7f8c8d;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --text-color: #333333;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 6px 16px rgba(0,0,0,0.2);
}

/* --- Allgemeine Styles --- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
}

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

html, body {
    overflow-x: hidden;
}

/* --- Links & Buttons --- */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Download-Links als Buttons */
a[href$=".pdf"],
a[download] {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: inline-block;
    margin: 8px 8px 8px 0;
}

a[href$=".pdf"]:hover,
a[download]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* E-Mail und Telefon Links */
a[href^="mailto:"],
a[href^="tel:"] {
    color: var(--primary-color);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

a[href^="mailto:"]:hover,
a[href^="tel:"]:hover {
    background-color: var(--light-gray);
}

/* Zurück-Link */
a strong {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover strong {
    color: var(--primary-dark);
}

.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* --- Header --- */
.main-header {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    padding-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
}

.header-content img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.header-content h1 {
    color: var(--dark-gray);
    margin: 15px 0;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.3;
    padding: 0 10px;
    font-weight: 700;
}

/* --- Navigation --- */
.navbar {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #34495e 100%);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-md);
}

.navbar a {
    display: block;
    color: var(--white);
    text-align: center;
    padding: 16px 20px;
    text-decoration: none;
    white-space: nowrap;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.navbar a:not(:first-child) {
    display: none;
}

.navbar a:hover,
.navbar a.active {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.navbar .icon {
    display: block;
    align-self: flex-end;
    color: var(--white);
    padding: 14px 16px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    margin: 0;
    min-height: 48px;
    min-width: 48px;
    transition: all 0.3s ease;
}

.navbar .icon:hover {
    background-color: rgba(255,255,255,0.1);
}

.navbar.responsive {
    position: relative;
}

.navbar.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
}

.navbar.responsive a {
    float: none;
    display: block;
    text-align: left;
    width: 100%;
    padding: 18px 20px;
}

/* --- Intro Section --- */
.intro-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
}

.intro-image {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 20px;
}

.intro-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.intro-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.intro-text {
    flex: 1 1 100%;
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.intro-text h2 {
    color: var(--dark-gray);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    line-height: 1.3;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    font-weight: 700;
}

.intro-text h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.intro-text p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
}

/* Hervorhebungs-Box für Preis */
.intro-text p:has(strong) {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe4b3 100%);
    padding: 15px;
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.intro-text ul,
.intro-text ol {
    list-style-position: outside;
    margin-left: 20px;
    padding-left: 10px;
    margin-bottom: 15px;
}

.intro-text li {
    margin-bottom: 12px;
    line-height: 1.7;
    padding-left: 5px;
}

.intro-text li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* Besondere Hervorhebung für wichtige Listenpunkte */
.intro-text li strong {
    color: var(--warning-color);
    background-color: #fff5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Definitionsliste (Zeiten) mit Style */
dl {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

dt {
    font-weight: bold;
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

dt:first-of-type {
    margin-top: 0;
}

dd {
    margin-left: 0;
    margin-bottom: 12px;
    padding: 12px 15px;
    background-color: var(--white);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    line-height: 1.7;
    box-shadow: var(--shadow-sm);
}

dd[style*="font-weight:bold"] {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    border-left-color: var(--warning-color);
    font-weight: bold !important;
    color: var(--warning-color);
}

/* Adresse als Card */
address {
    font-style: normal;
    line-height: 1.9;
    margin: 20px 0;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* Horizontale Linie */
hr {
    border: none;
    border-top: 2px solid var(--light-gray);
    margin: 35px 0;
}

/* --- News Section --- */
.news-section {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f2 100%);
    padding: 25px 15px;
    text-align: center;
    margin-top: 20px;
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.news-section h2 {
    color: var(--dark-gray);
    margin-bottom: 25px;
    font-size: 1.75rem;
    font-weight: 700;
}

.news-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.news-item {
    background-color: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-md);
    flex: 1 1 100%;
    max-width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-item h3 {
    color: var(--dark-gray);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.news-item p {
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.news-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    align-self: flex-end;
    margin-top: 10px;
}

/* --- Footer --- */
.main-footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #34495e 100%);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
    line-height: 1.8;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 12px;
    display: inline-block;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.footer-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.main-footer p {
    margin: 10px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Back to Top Button --- */
#myBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    cursor: pointer;
    padding: 15px 18px;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    opacity: 0.9;
    box-shadow: var(--shadow-lg);
    min-height: 50px;
    min-width: 50px;
}

#myBtn:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

#myBtn:active {
    transform: translateY(-2px);
}

/* --- Info-Boxen für besondere Hinweise --- */
.intro-text > p:first-of-type {
    background: linear-gradient(135deg, #e8f8f5 0%, #d1f2eb 100%);
    padding: 15px 20px;
    border-left: 4px solid var(--success-color);
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

/* --- Responsive Design für Tablets (ab 600px) --- */
@media (min-width: 600px) {
    .header-content h1 {
        font-size: 1.85rem;
    }

    .intro-text {
        padding: 30px;
    }

    .intro-text h2 {
        font-size: 1.85rem;
    }

    .news-item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .main-content {
        padding: 0 25px;
    }
}

/* --- Responsive Design für Desktop (ab 768px) --- */
@media (min-width: 768px) {
    body {
        font-size: 17px;
    }

    .header-content h1 {
        font-size: 2.25rem;
    }

    .navbar {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .navbar a {
        display: block !important;
        width: auto;
        padding: 16px 24px;
    }

    .navbar a:hover {
        transform: translateY(-2px);
    }

    .navbar .icon {
        display: none;
    }

    .intro-section {
        gap: 35px;
    }

    .intro-image {
        flex: 1 1 320px;
        min-width: 280px;
        margin-bottom: 0;
    }

    .intro-text {
        flex: 2 1 500px;
        min-width: 320px;
    }

    .intro-text h2 {
        font-size: 2.15rem;
    }

    .intro-text h3 {
        font-size: 1.5rem;
    }

    dd {
        padding: 15px 20px;
        margin-left: 20px;
    }

    .news-section {
        padding: 40px 20px;
    }

    .news-section h2 {
        font-size: 2.25rem;
    }

    #myBtn {
        bottom: 40px;
        right: 30px;
    }
}

/* --- Responsive Design für große Desktops (ab 1024px) --- */
@media (min-width: 1024px) {
    .main-content {
        padding: 0 40px;
    }

    .header-content {
        padding: 35px 20px;
    }

    .intro-text {
        padding: 35px;
    }

    .intro-text h2 {
        font-size: 2.5rem;
    }

    .news-section h2 {
        font-size: 2.5rem;
    }

    .navbar a {
        padding: 16px 28px;
    }
}

/* --- Sehr kleine Screens (unter 400px) --- */
@media (max-width: 399px) {
    body {
        font-size: 15px;
    }

    .header-content h1 {
        font-size: 1.35rem;
    }

    .intro-text {
        padding: 20px;
    }

    .intro-text h2 {
        font-size: 1.4rem;
    }

    .intro-text h3 {
        font-size: 1.2rem;
    }

    .navbar a {
        padding: 16px 15px;
        font-size: 0.95rem;
    }

    .news-section {
        padding: 20px 10px;
    }

    .news-item {
        padding: 20px;
    }

    #myBtn {
        bottom: 15px;
        right: 15px;
        padding: 12px 15px;
        font-size: 18px;
        min-height: 45px;
        min-width: 45px;
    }

    a[href$=".pdf"],
    a[download] {
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}

/* --- Print Styles --- */
@media print {
    .navbar,
    #myBtn,
    .footer-links {
        display: none;
    }

    body {
        background-color: var(--white);
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .intro-text,
    .news-item,
    address {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}