/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #2c3e50;
    --blue-light: #6d8fa8;
    --blue-mid: #4a6d8c;
    --gray: #888;
    --gray-light: #f5f5f3;
    --white: #fff;
    --text: #333;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container.narrow { max-width: 780px; }

/* ── NAVIGATION ── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { text-decoration: none; display: flex; flex-direction: column; gap: 0; align-items: flex-start; margin-right: auto; }

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}
.logo-shp {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-mid);
    letter-spacing: 4px;
    display: inline;
}
.logo-associate {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: 4px;
    display: inline;
}
.logo-sub {
    display: block;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--gray);
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}
.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-light); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--navy);
}

/* ── HERO ── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero.hero-sm {
    height: 55vh;
    min-height: 380px;
}

.hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: grayscale(30%) brightness(0.85);
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero:hover .hero-img { transform: scale(1); }

/* Hero backgrounds — placeholder SVG gradients until real photos */
.hero-img-1 {
    background-image: url('../img/hero-team.jpg');
    background-position: center top;
}
.hero-img-2 {
    background-image: url('../img/hero-compass.png');
    background-position: center;
}
.hero-img-3 {
    background-image: url('../img/hero-sailing.png');
    background-position: center;
}
.hero-img-4 {
    background-image: url('../img/hero-harbor.png');
    background-position: center;
}
.hero-img-5 {
    background-image: linear-gradient(135deg, #243040 0%, #345070 50%, #546888 100%);
}
.hero-img-6 {
    background-image: url('../img/hero-handshake.png');
    background-position: center 70%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 40px;
}

#home .hero-content {
    padding-top: 450px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content em {
    font-style: italic;
    color: rgba(255,255,255,0.9);
}

/* First hero needs nav offset */
#home { margin-top: 0; }

/* ── SECTIONS ── */
.section-text {
    padding: 80px 0;
    background: var(--white);
}

.section-text p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #555;
}

.center-text {
    text-align: center;
    font-size: 22px !important;
    line-height: 1.6 !important;
    color: var(--navy) !important;
    margin-top: 40px;
}

.label {
    font-size: 10px !important;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--blue-light) !important;
    margin-bottom: 8px !important;
}

/* ── SLOGAN ── */
.slogan-section {
    padding: 60px 0;
    background: var(--gray-light);
    text-align: center;
}

.slogan-italic {
    font-family: var(--font-serif);
    font-style: normal;
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 400;
    color: var(--navy);
    line-height: 1.3;
    margin-top: 12px;
}

/* ── LEISTUNGEN TABS ── */
.leistungen {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid #eee;
}

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn:hover { color: var(--blue-mid); }
.tab-btn.active { color: var(--blue-mid); border-bottom-color: var(--blue-mid); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.leistungen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.leistungen-grid h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 20px;
    font-weight: 400;
}

.leistungen-grid ul {
    list-style: none;
}

.leistungen-grid ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leistungen-grid ul li::before {
    content: '→';
    color: var(--blue-light);
    flex-shrink: 0;
}

.leistungen-img {
    height: 300px;
    background: linear-gradient(135deg, #d0dce8 0%, #b0c4d4 100%);
    border-radius: 4px;
}

.leistungen-img-auto {
    background-image: linear-gradient(135deg, #1a3050 0%, #2a5080 50%, #4a7090 100%);
}

/* ── EXPERTISE ── */
/* Expertise Vertical Tabs */
.expertise-tabs {
    display: flex;
    gap: 40px;
    margin-top: 32px;
}

.expertise-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 240px;
}

.expertise-btn {
    background: none;
    border: none;
    border-left: 3px solid transparent;
    padding: 12px 20px;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.expertise-btn:hover {
    color: var(--navy);
    background: rgba(106,143,168,0.06);
}

.expertise-btn.active {
    color: var(--navy);
    font-weight: 600;
    border-left-color: var(--blue-mid);
    background: rgba(106,143,168,0.08);
}

.expertise-panels {
    flex: 1;
}

.expertise-panel {
    display: none;
}

.expertise-panel.active {
    display: block;
}

.expertise-panel p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 16px;
    color: #555;
}

/* ── REFERENZEN ── */
.referenzen-section { background: var(--gray-light); }

/* Management Team */
.management-section { background: var(--gray-light); padding: 80px 0; }
.management-section .section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    text-align: center;
    color: var(--navy);
    margin-bottom: 60px;
}
.management-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}
.management-card {
    text-align: center;
}
.management-card img {
    width: 100%;
    max-width: 380px;
    border-radius: 8px;
    filter: grayscale(30%);
    transition: filter 0.3s;
}
.management-card img:hover {
    filter: grayscale(0%);
}
.management-text {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy);
}
.management-text h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}
.management-role {
    font-size: 18px;
    font-weight: 600;
    color: #4a7090;
    margin-bottom: 12px;
}
.management-text a {
    color: var(--navy);
    text-decoration: none;
}
.management-text a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .management-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── KUNDEN LOGOS ── */
.kunden { background: var(--white); }

.kunden-text {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
    font-size: 15px !important;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    min-height: 80px;
    transition: all 0.2s;
    background: var(--gray-light);
}

.logo-item img {
    max-height: 45px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.logo-item:hover {
    border-color: var(--blue-light);
    background: white;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ── KONTAKT ── */
.kontakt-section {
    padding: 80px 0;
    background: var(--gray-light);
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.kontakt-info { padding-top: 8px; }

.logo-kontakt {
    margin-bottom: 24px;
}

.logo-kontakt .logo-shp,
.logo-kontakt .logo-associate {
    font-size: 13px;
}

.kontakt-info p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.kontakt-info a {
    color: var(--blue-mid);
    text-decoration: none;
}

.kontakt-form h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 24px;
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text);
    background: white;
    margin-bottom: 16px;
    transition: border-color 0.2s;
    outline: none;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
    border-color: var(--blue-light);
}

.kontakt-form textarea { resize: vertical; }

.kontakt-form button {
    background: var(--blue-mid);
    color: white;
    border: none;
    padding: 13px 40px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.kontakt-form button:hover { background: var(--navy); }

.form-success {
    background: #d1fae5;
    color: #065f46;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
}

.form-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
}

.captcha-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.captcha-row label {
    font-size: 13px;
    color: #999;
    letter-spacing: 0.5px;
}

.captcha-row input {
    width: 160px;
}

/* ── FOOTER ── */
footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 40px;
}

footer h4 {
    color: white;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 600;
}

footer p { font-size: 13px; line-height: 1.8; }

footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
footer ul li a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .expertise-tabs { flex-direction: column; gap: 20px; }
    .expertise-nav { flex-direction: row; flex-wrap: wrap; min-width: auto; }
    .expertise-btn { border-left: none; border-bottom: 2px solid transparent; padding: 8px 16px; font-size: 14px; }
    .expertise-btn.active { border-left: none; border-bottom-color: var(--blue-mid); }
    .leistungen-grid { grid-template-columns: 1fr; }
    .leistungen-img { display: none; }
    .logos-grid { grid-template-columns: repeat(3, 1fr); }
    .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: white; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .container { padding: 0 20px; }

    .logos-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-img { background-attachment: scroll; }
}
