/**
 * Klaus Bötig - Griechenland Reiseblog
 * Design: Aegean Blue
 * CSS-Prefix: kb-
 *
 * Farben:
 * - Primary: #0077B6 (Ägäis-Blau)
 * - Secondary: #90E0EF (Himmelblau)
 * - Accent: #C9A227 (Goldocker)
 * - Text: #2B3A42 (Anthrazit)
 * - Background: #FAFBFC (Santorin-Weiß)
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --kb-primary: #0077B6;
    --kb-secondary: #90E0EF;
    --kb-bg: #FAFBFC;
    --kb-text: #2B3A42;
    --kb-accent: #C9A227;
    --kb-white: #FFFFFF;
    --kb-light: #E8F4F8;
    --kb-border: #E5E9EB;
    --kb-muted: #5A6A72;

    --kb-font-heading: 'Lora', Georgia, serif;
    --kb-font-body: 'Open Sans', Helvetica, Arial, sans-serif;

    --kb-max-width: 1140px;
    --kb-radius: 8px;
    --kb-radius-sm: 4px;
    --kb-shadow: 0 4px 20px rgba(0,0,0,0.06);
    --kb-shadow-hover: 0 8px 30px rgba(0, 119, 182, 0.12);
    --kb-transition: 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

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

body {
    font-family: var(--kb-font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--kb-text);
    background-color: var(--kb-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--kb-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--kb-text);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.625rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--kb-primary);
    text-decoration: none;
    transition: color var(--kb-transition);
}

a:hover {
    color: var(--kb-accent);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   Layout
   ========================================================================== */

.kb-container {
    max-width: var(--kb-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.kb-section {
    padding: 4rem 0;
}

.kb-section--light {
    background-color: var(--kb-light);
}

.kb-section--dark {
    background-color: var(--kb-text);
    color: #B8C4CA;
}

/* ==========================================================================
   Header
   ========================================================================== */

.kb-header {
    background: var(--kb-white);
    border-bottom: 3px solid var(--kb-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.kb-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kb-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.kb-logo__img {
    height: 50px;
    width: auto;
}

.kb-logo__text {
    font-family: var(--kb-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--kb-text);
}

.kb-logo__text span {
    color: var(--kb-primary);
}

/* Navigation */
.kb-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.kb-nav a {
    color: var(--kb-text);
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all var(--kb-transition);
}

.kb-nav a:hover,
.kb-nav a.active {
    color: var(--kb-primary);
    border-bottom-color: var(--kb-primary);
}

/* Mobile Menu Toggle */
.kb-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--kb-text);
    cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.kb-hero {
    background: linear-gradient(rgba(0, 119, 182, 0.6), rgba(43, 58, 66, 0.7)),
                url('../assets/hero/hero.jpg') center/cover no-repeat;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--kb-white);
    padding: 4rem 2rem;
}

.kb-hero--small {
    min-height: 280px;
}

.kb-hero__content {
    max-width: 800px;
}

.kb-hero__title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    color: var(--kb-white);
}

.kb-hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.kb-hero__meta {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.85;
}

/* ==========================================================================
   Mäander Divider
   ========================================================================== */

.kb-meander {
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--kb-primary) 0px,
        var(--kb-primary) 20px,
        var(--kb-secondary) 20px,
        var(--kb-secondary) 40px
    );
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.kb-btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-family: var(--kb-font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--kb-radius-sm);
    cursor: pointer;
    transition: all var(--kb-transition);
}

.kb-btn--primary {
    background: var(--kb-accent);
    color: var(--kb-white);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.kb-btn--primary:hover {
    background: #B8922A;
    color: var(--kb-white);
    transform: translateY(-2px);
}

.kb-btn--secondary {
    background: var(--kb-primary);
    color: var(--kb-white);
}

.kb-btn--secondary:hover {
    background: #005A8C;
    color: var(--kb-white);
}

.kb-btn--outline {
    background: transparent;
    color: var(--kb-primary);
    border: 2px solid var(--kb-primary);
}

.kb-btn--outline:hover {
    background: var(--kb-primary);
    color: var(--kb-white);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.kb-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.kb-card {
    background: var(--kb-white);
    border-radius: var(--kb-radius);
    overflow: hidden;
    box-shadow: var(--kb-shadow);
    border: 1px solid var(--kb-border);
    transition: all var(--kb-transition);
}

.kb-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--kb-shadow-hover);
    border-color: var(--kb-primary);
}

.kb-card__img {
    height: 200px;
    background: linear-gradient(135deg, var(--kb-primary) 0%, var(--kb-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kb-white);
    font-size: 3rem;
    overflow: hidden;
}

.kb-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-card__content {
    padding: 1.5rem;
}

.kb-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.kb-card__excerpt {
    color: var(--kb-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.kb-card__link {
    color: var(--kb-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.kb-card__link:hover {
    color: var(--kb-accent);
}

/* Featured Card */
.kb-card--featured {
    border-left: 4px solid var(--kb-accent);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.kb-section-header {
    margin-bottom: 2rem;
}

.kb-section-header--center {
    text-align: center;
}

.kb-section__title {
    font-size: 2rem;
    color: var(--kb-text);
    margin-bottom: 0.5rem;
}

.kb-section__subtitle {
    color: var(--kb-primary);
    font-size: 1.1rem;
}

/* ==========================================================================
   Two Column Layout
   ========================================================================== */

.kb-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
}

.kb-layout__main {
    min-width: 0;
}

.kb-layout__sidebar {
    min-width: 0;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.kb-sidebar {
    background: var(--kb-white);
    padding: 1.5rem;
    border-radius: var(--kb-radius);
    border: 1px solid var(--kb-border);
    position: sticky;
    top: 100px;
}

.kb-sidebar__title {
    font-size: 1.1rem;
    color: var(--kb-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--kb-primary);
}

.kb-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.kb-sidebar li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--kb-border);
    margin: 0;
}

.kb-sidebar li:last-child {
    border-bottom: none;
}

.kb-sidebar a {
    color: var(--kb-text);
}

.kb-sidebar a:hover {
    color: var(--kb-primary);
}

/* ==========================================================================
   Tribute Section
   ========================================================================== */

.kb-tribute {
    background: var(--kb-light);
    padding: 4rem 2rem;
}

.kb-tribute__inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
}

.kb-tribute__img {
    width: 200px;
    height: 200px;
    background: var(--kb-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 4px solid var(--kb-primary);
    overflow: hidden;
}

.kb-tribute__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-tribute__title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.kb-tribute__dates {
    color: var(--kb-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Article Content
   ========================================================================== */

.kb-article {
    background: var(--kb-white);
    border-radius: var(--kb-radius);
    padding: 2rem;
    box-shadow: var(--kb-shadow);
}

.kb-article__header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--kb-border);
}

.kb-article__meta {
    color: var(--kb-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.kb-article__content h2 {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--kb-border);
}

.kb-article__content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.kb-article__content img {
    border-radius: var(--kb-radius-sm);
    margin: 1.5rem 0;
}

.kb-article__content blockquote {
    border-left: 4px solid var(--kb-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--kb-light);
    font-style: italic;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.kb-breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.kb-breadcrumb ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.kb-breadcrumb li {
    margin: 0;
}

.kb-breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--kb-muted);
}

.kb-breadcrumb a {
    color: var(--kb-muted);
}

.kb-breadcrumb a:hover {
    color: var(--kb-primary);
}

.kb-breadcrumb li:last-child {
    color: var(--kb-text);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.kb-footer {
    background: var(--kb-text);
    color: #B8C4CA;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.kb-footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.kb-footer__title {
    color: var(--kb-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.kb-footer a {
    color: #B8C4CA;
    display: block;
    margin-bottom: 0.4rem;
}

.kb-footer a:hover {
    color: var(--kb-secondary);
}

.kb-footer__bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(144, 224, 239, 0.2);
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */

.kb-legal {
    max-width: 800px;
    margin: 0 auto;
}

.kb-legal h2 {
    margin-top: 2rem;
    color: var(--kb-primary);
}

.kb-legal h3 {
    margin-top: 1.5rem;
}

/* ==========================================================================
   404 / Error Page
   ========================================================================== */

.kb-error-page {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.kb-error-page__icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.kb-error-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.kb-error-page__code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--kb-primary);
    margin-bottom: 1.5rem;
}

.kb-error-page__text {
    color: var(--kb-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.kb-error-page__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.kb-error-page__suggestions {
    background: var(--kb-light);
    padding: 1.5rem;
    border-radius: var(--kb-radius);
    text-align: left;
}

.kb-error-page__suggestions h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--kb-primary);
}

.kb-error-page__suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.kb-error-page__suggestions li {
    margin: 0;
}

.kb-error-page__suggestions a {
    color: var(--kb-text);
    padding: 0.3rem 0;
    display: block;
}

.kb-error-page__suggestions a:hover {
    color: var(--kb-primary);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.kb-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.kb-contact-info__item {
    background: var(--kb-light);
    padding: 1.5rem;
    border-radius: var(--kb-radius);
    text-align: center;
}

.kb-contact-info__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.kb-contact-info__item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.kb-text-center { text-align: center; }
.kb-text-left { text-align: left; }
.kb-text-right { text-align: right; }

.kb-mb-0 { margin-bottom: 0; }
.kb-mb-1 { margin-bottom: 0.5rem; }
.kb-mb-2 { margin-bottom: 1rem; }
.kb-mb-3 { margin-bottom: 1.5rem; }
.kb-mb-4 { margin-bottom: 2rem; }

.kb-mt-0 { margin-top: 0; }
.kb-mt-1 { margin-top: 0.5rem; }
.kb-mt-2 { margin-top: 1rem; }
.kb-mt-3 { margin-top: 1.5rem; }
.kb-mt-4 { margin-top: 2rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .kb-layout {
        grid-template-columns: 1fr;
    }

    .kb-layout__sidebar {
        order: 2;
    }

    .kb-tribute__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .kb-tribute__img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .kb-container {
        padding: 0 1rem;
    }

    .kb-nav {
        display: none;
    }

    .kb-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--kb-white);
        border-bottom: 3px solid var(--kb-primary);
        padding: 1rem;
    }

    .kb-nav.active ul {
        flex-direction: column;
        gap: 0;
    }

    .kb-nav.active li {
        border-bottom: 1px solid var(--kb-border);
    }

    .kb-nav.active a {
        display: block;
        padding: 0.75rem 0;
    }

    .kb-menu-toggle {
        display: block;
    }

    .kb-hero__title {
        font-size: 2rem;
    }

    .kb-cards {
        grid-template-columns: 1fr;
    }

    .kb-section {
        padding: 2.5rem 0;
    }

    .kb-article {
        padding: 1.5rem;
    }

    .kb-footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .kb-hero {
        min-height: 350px;
        padding: 2rem 1rem;
    }

    .kb-hero__title {
        font-size: 1.75rem;
    }

    .kb-btn {
        display: block;
        width: 100%;
    }
}
