/* ============================================
   S&P Anwaltskanzlei – Stylesheet
   Farbpalette: Navy + Gold
   ============================================ */

:root {
    --navy-900: #0b1428;
    --navy-800: #111c38;
    --navy-700: #1a2548;
    --navy-600: #243160;
    --gold-500: #c9a14a;
    --gold-400: #d8b765;
    --gold-300: #e7ce8a;
    --cream: #f6f1e6;
    --paper: #fbf9f4;
    --text: #1c2233;
    --text-muted: #5a6075;
    --border: #e3dccb;
    --shadow: 0 10px 30px rgba(11, 20, 40, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--gold-500);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--gold-400);
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    color: var(--navy-900);
    letter-spacing: .02em;
    line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .6rem; }
h4 { font-size: 1rem; margin-bottom: .75rem; color: var(--gold-400); text-transform: uppercase; letter-spacing: .08em; }

p { margin-bottom: 1rem; }

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: .75rem;
    font-weight: 600;
}

.eyebrow.center, .center { text-align: center; }
.eyebrow.center { display: block; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 20, 40, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(201, 161, 74, .25);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 0;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--cream);
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--cream);
    letter-spacing: .05em;
}
.brand-subtitle {
    font-size: .72rem;
    color: var(--gold-400);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    gap: 1.8rem;
}

.main-nav a {
    color: var(--cream);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
    padding: .35rem 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--gold-500);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.main-nav a:hover, .main-nav a.active { color: var(--gold-400); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--cream);
    transition: .25s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(201,161,74,.18), transparent 60%),
        linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--cream);
    overflow: hidden;
    padding: 4rem 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(201,161,74,.04) 0 2px, transparent 2px 24px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 820px;
}

.hero-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,.5));
}

.hero h1 {
    color: var(--cream);
    margin-bottom: .75rem;
}

.hero-tagline {
    font-family: 'Cinzel', serif;
    color: var(--gold-400);
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.hero-sub {
    color: rgba(246, 241, 230, .85);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: .85rem 1.8rem;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .05em;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}
.btn-primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    color: var(--navy-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201,161,74,.35);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(246, 241, 230, .35);
}
.btn-ghost:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
    color: var(--cream);
}

.section-dark h2,
.section-dark h3 { color: var(--cream); }
.section-dark p { color: rgba(246, 241, 230, .8); }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}
.feature-list li {
    padding: 1.1rem 1.25rem;
    background: #fff;
    border-left: 3px solid var(--gold-500);
    box-shadow: var(--shadow);
    border-radius: 2px;
}
.feature-list strong {
    display: block;
    font-family: 'Cinzel', serif;
    color: var(--navy-900);
    margin-bottom: .15rem;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(201,161,74,.2);
    padding: 1.75rem;
    border-radius: 4px;
    transition: all .3s ease;
}

.card:hover {
    border-color: var(--gold-500);
    background: rgba(201,161,74,.08);
    transform: translateY(-4px);
}

.cta-row {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Contact ===== */
.contact-list {
    list-style: none;
    margin-top: 1.25rem;
}
.contact-list li {
    padding: .65rem 0;
    border-bottom: 1px solid var(--border);
}
.contact-list strong {
    color: var(--navy-900);
    margin-right: .5rem;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold-500);
    display: grid;
    gap: 1rem;
}
.contact-form label {
    display: flex;
    flex-direction: column;
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy-900);
    text-transform: uppercase;
    letter-spacing: .1em;
    gap: .4rem;
}
.contact-form input,
.contact-form textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: .75rem .9rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--paper);
    color: var(--text);
    transition: border-color .2s;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    background: #fff;
}

/* ===== Page header (Honorar) ===== */
.page-header {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--cream);
    padding: 5rem 0 4rem;
    text-align: center;
}
.page-header h1 { color: var(--cream); margin-bottom: 1rem; }
.page-header p { color: rgba(246,241,230,.85); max-width: 620px; margin: 0 auto; }
.page-logo {
    width: 90px; height: 90px;
    margin: 0 auto 1.25rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

/* ===== Table ===== */
.table-wrap {
    overflow-x: auto;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 4px;
    border-top: 3px solid var(--gold-500);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.price-table thead {
    background: var(--navy-900);
    color: var(--gold-400);
}
.price-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: .1em;
    font-size: .85rem;
    text-transform: uppercase;
}
.price-table td {
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: .98rem;
}
.price-table tbody tr:hover {
    background: rgba(201,161,74,.07);
}
.price-table tbody td:first-child {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: .05em;
}
.price-table .right { text-align: right; font-weight: 600; color: var(--navy-900); }
.price-table tbody tr:last-child td { border-bottom: 0; }

/* ===== Notice ===== */
.notice {
    margin-top: 3rem;
    background: #fff;
    padding: 2.25rem;
    border-radius: 4px;
    border-left: 4px solid var(--gold-500);
    box-shadow: var(--shadow);
}
.notice h3 {
    color: var(--navy-900);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.notice .signature {
    margin-top: 1.5rem;
    font-family: 'Cinzel', serif;
    font-style: italic;
    color: var(--navy-900);
    font-size: 1.1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--navy-900);
    color: rgba(246, 241, 230, .8);
    padding: 3.5rem 0 1.5rem;
    margin-top: 0;
    border-top: 3px solid var(--gold-500);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(201,161,74,.2);
}

.footer-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 1rem;
}
.footer-brand {
    font-family: 'Cinzel', serif;
    color: var(--cream);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .2rem;
}
.footer-sub {
    font-size: .8rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold-400);
}

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer ul a { color: rgba(246, 241, 230, .8); font-size: .95rem; }
.site-footer ul a:hover { color: var(--gold-400); }

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    font-size: .85rem;
}
.footer-bottom p { margin-bottom: .35rem; color: rgba(246, 241, 230, .65); }
.footer-bottom strong { color: var(--gold-400); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: left; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--navy-900);
        flex-direction: column;
        padding: 1rem 5%;
        gap: .5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        border-bottom: 1px solid rgba(201,161,74,.2);
    }
    .main-nav.open { max-height: 400px; padding: 1rem 5%; }
    .main-nav a { padding: .75rem 0; border-bottom: 1px solid rgba(201,161,74,.1); }

    .brand-subtitle { display: none; }
    .hero { min-height: 70vh; }
    .hero-logo { width: 100px; height: 100px; }
    .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
    .brand-title { font-size: 1rem; }
    .brand-logo { width: 44px; height: 44px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { text-align: center; }
}
