/* ============================================================
   Segelhandbuch — Professional Maritime Design
   ============================================================ */

/* --- CSS Variables --- */
:root {
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Brand Colors */
    --navy-900: #0b1b2e;
    --navy-800: #122840;
    --navy-700: #1a3454;
    --navy-600: #1e4068;
    --ocean-600: #1a5276;
    --ocean-500: #2874a6;
    --ocean-400: #3498db;
    --ocean-300: #5dade2;
    --ocean-100: #e8f3fb;

    /* Warm Accents */
    --sand-500: #b8860b;
    --sand-400: #c9a54a;
    --sand-200: #e8d5a8;
    --sand-100: #faf6ef;

    /* Greens */
    --green-600: #0e6655;
    --green-500: #148f77;
    --green-400: #1abc9c;
    --green-100: #eafaf4;

    /* Amber / Warning */
    --amber-600: #d68910;
    --amber-500: #e67e22;
    --amber-100: #fef9ee;

    /* Neutral Slate */
    --slate-800: #2c3e50;
    --slate-700: #374b5c;
    --slate-600: #516171;
    --slate-500: #6b7f8f;
    --slate-400: #8e9daa;
    --slate-300: #b5bfc9;
    --slate-200: #d5dce2;
    --slate-100: #eceff2;
    --slate-50: #f5f7f9;
    --white: #ffffff;

    /* Layout */
    --header-h: 60px;
    --sidebar-w: 250px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(11,27,46,0.04);
    --shadow-sm: 0 1px 3px rgba(11,27,46,0.06), 0 1px 2px rgba(11,27,46,0.04);
    --shadow-md: 0 4px 8px -1px rgba(11,27,46,0.07), 0 2px 4px -2px rgba(11,27,46,0.04);
    --shadow-lg: 0 10px 20px -4px rgba(11,27,46,0.1), 0 4px 8px -4px rgba(11,27,46,0.05);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.2s;
}


/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--slate-700);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--ocean-500);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover {
    color: var(--ocean-600);
}

ul, ol {
    padding-left: 1.25rem;
}

strong {
    font-weight: 600;
    color: var(--slate-800);
}


/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    box-shadow: 0 2px 12px rgba(11,27,46,0.2);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sand-400), var(--sand-500), var(--sand-400));
    opacity: 0.7;
}

.header-content {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    min-width: 0;
}

.header-content h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.header-content h1 a {
    color: var(--white);
    text-decoration: none;
}

.header-content h1 a:hover {
    color: var(--sand-200);
}

.subtitle {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    margin-right: 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--duration) var(--ease);
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.14);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}


/* --- Layout --- */
.layout {
    display: flex;
    margin-top: var(--header-h);
    min-height: calc(100vh - var(--header-h));
}


/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--navy-800) 0%, #0f1f33 100%);
    color: var(--white);
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 13px;
    z-index: 900;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    transition: transform 0.35s var(--ease);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.sidebar-nav {
    list-style: none;
    padding: 0.5rem 0;
}

.nav-section {
    display: block;
    padding: 0.6rem 1rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-left: 3px solid transparent;
    transition: all var(--duration) var(--ease);
}

a.nav-section {
    color: rgba(255,255,255,0.8);
    cursor: pointer;
}

a.nav-section:hover {
    color: var(--white);
    background: rgba(255,255,255,0.04);
}

.nav-section.active {
    color: var(--sand-400);
    border-left-color: var(--sand-400);
    background: rgba(255,255,255,0.03);
}

a.nav-section.active {
    color: var(--sand-400);
}

/* --- Collapsible Sections --- */
span.nav-section {
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

span.nav-section::after {
    content: '';
    position: absolute;
    right: 0.9rem;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid rgba(255,255,255,0.35);
    border-bottom: 1.5px solid rgba(255,255,255,0.35);
    transform: translateY(-60%) rotate(-45deg);
    transition: transform 0.25s var(--ease);
}

.sidebar-nav > li.open > span.nav-section::after {
    transform: translateY(-40%) rotate(45deg);
}

.subnav {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
}

.sidebar-nav > li.open > .subnav {
    max-height: 500px;
    padding: 0.15rem 0 0.4rem 0;
}

.subnav li a {
    display: block;
    padding: 0.4rem 1rem 0.4rem 1.5rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    border-left: 3px solid transparent;
    transition: all var(--duration) var(--ease);
}

.subnav li a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.04);
    border-left-color: rgba(255,255,255,0.2);
}

.subnav li a.active {
    color: var(--ocean-300);
    background: rgba(93,173,226,0.08);
    border-left-color: var(--ocean-400);
    font-weight: 500;
}


/* --- Sidebar Overlay (Mobile) --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11,27,46,0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 899;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}


/* --- Main Content --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 1.75rem 2rem;
    max-width: calc(100% - var(--sidebar-w));
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-wrapper {
    max-width: 860px;
}


/* --- Page Header --- */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--slate-200);
}

.page-header h2 {
    font-family: var(--font-display);
    color: var(--slate-800);
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--slate-400);
    margin-top: 0.35rem;
}

.breadcrumb a {
    color: var(--ocean-500);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--ocean-600);
    text-decoration: underline;
}


/* --- Sections --- */
section {
    background: var(--white);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-sm);
}

h3 {
    font-family: var(--font-display);
    color: var(--slate-800);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

h4 {
    font-family: var(--font-display);
    color: var(--slate-800);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 0.6rem;
}

section ul, section ol {
    margin-bottom: 0.5rem;
}

section li {
    margin-bottom: 0.3rem;
}


/* --- Cards --- */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--white);
    padding: 1.1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--slate-100);
    border-left: 4px solid var(--ocean-500);
    box-shadow: var(--shadow-xs);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card.skipper { border-left-color: var(--ocean-600); }
.card.crew { border-left-color: var(--green-500); }

.card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.card h3 a {
    color: var(--slate-800);
    text-decoration: none;
}

.card h3 a:hover {
    color: var(--ocean-500);
}

.card p {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin: 0;
    line-height: 1.5;
}

.card ul {
    margin: 0.6rem 0 0 0;
    padding-left: 1rem;
    font-size: 0.85rem;
}

.card li {
    margin: 0.25rem 0;
}

.card a {
    color: var(--ocean-500);
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}


/* --- Checklists --- */
.checklist {
    background: var(--slate-50);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    border: 1px solid var(--slate-100);
}

.checklist h4 {
    color: var(--slate-800);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    padding: 0.4rem 0 0.4rem 1.75rem;
    position: relative;
    border-bottom: 1px solid var(--slate-100);
    font-size: 0.9rem;
}

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

.checklist li::before {
    content: "\2610";
    position: absolute;
    left: 0;
    color: var(--ocean-500);
    font-size: 1rem;
}

.checklist li strong {
    color: var(--slate-800);
}


/* --- Info / Warning / Tip Boxes --- */
.info-box,
.warning-box,
.tip-box {
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-box {
    background: var(--ocean-100);
    border-left: 4px solid var(--ocean-500);
}

.warning-box {
    background: var(--amber-100);
    border-left: 4px solid var(--amber-500);
}

.warning-box strong {
    color: #7c5a00;
}

.tip-box {
    background: var(--green-100);
    border-left: 4px solid var(--green-500);
}

.info-box strong,
.warning-box strong,
.tip-box strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.warning-box ul,
.info-box ul,
.tip-box ul {
    margin: 0.35rem 0 0 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
}

.warning-box li,
.info-box li,
.tip-box li {
    margin: 0.2rem 0;
}


/* --- Source Citation --- */
.source {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--slate-100);
    font-size: 0.8rem;
    color: var(--slate-400);
}

.source a {
    color: var(--ocean-500);
}

.source a:hover {
    text-decoration: underline;
}


/* --- Video Grid --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.video-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--duration) var(--ease);
}

.video-card:hover {
    box-shadow: var(--shadow-md);
}

.video-card h4 {
    padding: 0.6rem 0.9rem;
    margin: 0;
    background: var(--navy-800);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* --- Page Navigation --- */
.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--slate-200);
    font-size: 0.85rem;
}

.page-nav a {
    color: var(--ocean-500);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: all var(--duration) var(--ease);
}

.page-nav a:hover {
    background: var(--ocean-100);
    color: var(--ocean-600);
}


/* --- Footer --- */
footer {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: rgba(255,255,255,0.45);
    text-align: center;
    padding: 1rem 1.5rem;
    margin-left: var(--sidebar-w);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

footer::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--sand-400);
    margin: 0 auto 0.75rem;
    opacity: 0.5;
}


/* ============================================================
   LOCATION PAGES (Orte)
   ============================================================ */

/* --- Location Header --- */
.location-header {
    background: linear-gradient(135deg, var(--ocean-600), var(--ocean-500));
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.location-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.04) 100%);
    pointer-events: none;
}

.location-header h3 {
    color: var(--white);
    margin: 0 0 0.3rem 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0;
}

.location-header .location-type {
    font-size: 0.95rem;
    opacity: 0.9;
}

.location-header .location-region {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.35rem;
}

/* Location Type Variants */
.location-header.location-marina {
    background: linear-gradient(135deg, #0d3a5c, var(--ocean-500));
}

.location-header.location-ankerbucht {
    background: linear-gradient(135deg, var(--green-600), var(--green-500));
}

.location-header.location-bojenfeld {
    background: linear-gradient(135deg, #117a65, var(--green-400));
}

.location-header.location-insel {
    background: linear-gradient(135deg, #6c3483, #8e44ad);
}

.location-header.location-highlights {
    background: linear-gradient(135deg, #8b6914, var(--sand-500));
}


/* --- Info Grid (Locations & Ships) --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.info-item {
    background: var(--slate-50);
    padding: 0.65rem 0.8rem;
    border-radius: 6px;
    border-left: 3px solid var(--ocean-500);
    transition: transform var(--duration) var(--ease);
}

.info-item:hover {
    transform: translateX(2px);
}

.info-item .label {
    font-size: 0.68rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.info-item .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-top: 0.15rem;
}

.info-item .value a {
    color: var(--slate-800);
    text-decoration: underline;
    text-decoration-color: var(--ocean-400);
    text-underline-offset: 2px;
}

.info-item .value a:hover {
    color: var(--ocean-500);
}

/* Info item color variants for location types */
.location-ankerbucht ~ section .info-item,
body.location-ankerbucht .info-item {
    border-left-color: var(--green-500);
}

.location-bojenfeld ~ section .info-item,
body.location-bojenfeld .info-item {
    border-left-color: var(--green-400);
}


/* --- Feature / Equipment Lists --- */
.feature-list,
.equipment-list {
    columns: 2;
    column-gap: 2.5rem;
    list-style: none;
    padding: 0;
}

.feature-list li,
.equipment-list li {
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
    break-inside: avoid;
    font-size: 0.9rem;
}

.feature-list li::before,
.equipment-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--green-500);
    font-weight: 700;
}


/* --- Photo Gallery --- */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.photo-gallery a {
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.photo-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
    filter: brightness(0.97);
}

.photo-gallery img:hover {
    transform: scale(1.04);
    filter: brightness(1.02);
}


/* --- Photo Credit --- */
.photo-credit {
    font-size: 0.8rem;
    color: var(--slate-400);
    margin-top: 0.5rem;
}


/* --- Main Photo --- */
.main-photo {
    width: 100%;
    max-width: 700px;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: var(--shadow-md);
}


/* --- Award Badge --- */
.award-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    color: var(--white);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.15rem 0.25rem 0.15rem 0;
}


/* --- Wind Protection Boxes --- */
.wind-good {
    background: var(--green-100);
    border-left: 4px solid var(--green-500);
    padding: 0.8rem 1rem;
    margin: 0.75rem 0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.wind-bad {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 0.8rem 1rem;
    margin: 0.75rem 0;
    border-radius: 6px;
    font-size: 0.9rem;
}


/* ============================================================
   SHIP PAGES (Allgemein)
   ============================================================ */

.ship-header {
    background: linear-gradient(135deg, var(--slate-800), var(--slate-700));
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.ship-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 35%;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.03) 100%);
    pointer-events: none;
}

.ship-header h3 {
    color: var(--white);
    margin: 0 0 0.5rem 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
}

.ship-header .ship-model {
    font-size: 1.05rem;
    opacity: 0.9;
}

.ship-header .ship-location,
.ship-header .ship-info {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.spec-item {
    background: var(--slate-50);
    padding: 0.75rem 0.9rem;
    border-radius: 6px;
    border-left: 3px solid var(--ocean-400);
    transition: transform var(--duration) var(--ease);
}

.spec-item:hover {
    transform: translateX(2px);
}

.spec-item .label {
    font-size: 0.7rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.spec-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-top: 0.2rem;
}


/* ============================================================
   ORTE OVERVIEW PAGE
   ============================================================ */

#map {
    height: 450px;
    width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.ort-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    margin: 0.75rem 0;
    border-left: 4px solid var(--ocean-600);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-top: 1px solid var(--slate-100);
    border-right: 1px solid var(--slate-100);
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow-xs);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.ort-card:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-md);
}

.ort-card.ankerbucht {
    border-left-color: var(--green-600);
}

.ort-card.bojenfeld {
    border-left-color: var(--green-500);
}

.ort-card-content {
    flex: 1;
}

.ort-card h4 {
    margin: 0 0 0.3rem 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
}

.ort-card h4 a {
    color: var(--slate-800);
    text-decoration: none;
}

.ort-card h4 a:hover {
    color: var(--ocean-600);
}

.ort-card .ort-type {
    font-size: 0.78rem;
    color: var(--slate-500);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.ort-card .ort-desc {
    font-size: 0.9rem;
    color: var(--slate-600);
    line-height: 1.5;
}

.ort-card .ort-coords {
    font-size: 0.8rem;
    color: var(--slate-400);
    margin-top: 0.35rem;
}

.ort-card .ort-coords a {
    color: var(--ocean-500);
}

.legende {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: var(--slate-600);
}

.legende-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.legende-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.legende-color.marina { background: var(--ocean-600); }
.legende-color.ankerbucht { background: var(--green-600); }
.legende-color.bojenfeld { background: var(--green-500); }
.legende-color.insel { background: #8e44ad; }

.route-info {
    background: var(--ocean-100);
    border-left: 4px solid var(--ocean-400);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}


/* ============================================================
   TABLES
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

th {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--slate-200);
    background: var(--slate-50);
    font-weight: 600;
    color: var(--slate-800);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-600);
}

tr:hover td {
    background: var(--slate-50);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn,
a[download] {
    display: inline-block;
    padding: 0.65rem 1.35rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    border: none;
}

.btn-primary,
a[download] {
    background: linear-gradient(135deg, var(--ocean-600), var(--ocean-500));
    color: var(--white) !important;
    box-shadow: 0 2px 6px rgba(26,82,118,0.25);
}

.btn-primary:hover,
a[download]:hover {
    background: linear-gradient(135deg, #0d3a5c, var(--ocean-600));
    box-shadow: 0 4px 10px rgba(26,82,118,0.3);
    transform: translateY(-1px);
    color: var(--white) !important;
}


/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --sidebar-w: 220px;
    }

    .main-content {
        padding: 1.25rem 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --sidebar-w: 280px;
    }

    .menu-toggle {
        display: flex;
    }

    .subtitle {
        display: none;
    }

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

    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-w);
        top: var(--header-h);
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(11,27,46,0.3);
    }

    .sidebar-overlay.open {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .layout {
        flex-direction: column;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 1rem;
    }

    footer {
        margin-left: 0;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .feature-list,
    .equipment-list {
        columns: 1;
    }

    .info-grid,
    .spec-grid {
        grid-template-columns: 1fr;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    #map {
        height: 300px;
    }

    .location-header {
        padding: 1rem;
    }

    .location-header h3 {
        font-size: 1.25rem;
    }

    .ship-header {
        padding: 1rem;
    }

    .ship-header h3 {
        font-size: 1.3rem;
    }

    .ort-card {
        flex-direction: column;
        gap: 0.5rem;
    }

    section {
        padding: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-header h2 {
        font-size: 1.3rem;
    }

    .photo-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .photo-gallery img {
        height: 120px;
    }

    .card {
        padding: 0.9rem 1rem;
    }

    .page-nav {
        font-size: 0.8rem;
    }

    .page-nav a {
        padding: 0.3rem 0.5rem;
    }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    header,
    .sidebar,
    .sidebar-overlay,
    footer,
    .page-nav,
    .menu-toggle {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 0;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    section {
        border: none;
        box-shadow: none;
        padding: 0.5rem 0;
        break-inside: avoid;
    }

    .checklist li::before {
        content: "\2610";
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .location-header,
    .ship-header {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
