/* ============================================
   termine.hwk-berlin.de - HWK Corporate Design
   1:1 portiert aus ki.hwk-berlin.de/styles.css
   ============================================ */

/* 1. HWK FARBPALETTE (EXAKT) */
:root {
    --hwk-blue-dark: #073070;
    --hwk-blue-dark-75: #456494;
    --hwk-blue-dark-50: #8397b7;
    --hwk-blue-dark-25: #c1cbdb;
    --hwk-blue-light: #408fe5;
    --hwk-blue-light-75: #70abec;
    --hwk-blue-light-50: #a0c7f2;
    --hwk-blue-light-25: #d0e3f9;
    --hwk-green-dark: #409318;
    --hwk-green-dark-75: #70ae52;
    --hwk-green-light: #abd700;
    --hwk-orange: #ff8d25;
    --hwk-orange-75: #ffb366;
    --hwk-yellow: #ffc51a;
    --hwk-red-dark: #b8003f;
    --hwk-red-dark-75: #ca406f;
    --hwk-grey-light: #ccc;
    --hwk-grey: #999;
    --hwk-grey-dark: #444;
    --hwk-black: #252525;
    --bg-body: #f3f6fa;
    --bg-white: #fff;
    --shadow-default: 1px 1px 6px rgba(127, 127, 127, 0.3);
    --shadow-hover: 1px 1px 12px rgba(127, 127, 127, 0.6);
    --shadow-active: 1px 1px 4px rgba(127, 127, 127, 0.8);
    --shadow-header: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

/* 2. RESET */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'TheSans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--hwk-black);
    background-color: var(--bg-body);
    margin: 0; padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

/* 3. TYPOGRAFIE */
h1, h2, h3, h4 { margin-top: 0; color: var(--hwk-black); font-weight: 700; line-height: 1.25; }
h1 { font-size: 36px; margin-bottom: 25px; }
h2 { font-size: 28px; margin-bottom: 20px; }
h3 { font-size: 24px; margin-bottom: 12px; }
h4 { font-size: 20px; margin-bottom: 12px; }
p  { font-size: 16px; padding-bottom: 12px; line-height: 1.5; margin: 0; }
h1 span:not([class]), h2 span:not([class]), h3 span:not([class]) {
    font-size: 16px;
    color: var(--hwk-blue-light);
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

/* 4. HEADER (Sticky, HWK Blau Hell 50) */
.tt-header {
    background-color: var(--hwk-blue-light-50);
    min-height: 64px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px;
    box-shadow: var(--shadow-header);
    position: sticky; top: 0; z-index: 100;
    gap: 16px;
}
.tt-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 18px; font-weight: 700;
    color: var(--hwk-blue-dark);
    text-decoration: none;
    border-bottom: none;
    flex-shrink: 0;
}
.tt-logo-icon {
    width: 40px; height: 40px;
    background-color: var(--hwk-blue-dark);
    display: flex; align-items: center; justify-content: center;
    color: white; flex-shrink: 0;
}
.tt-logo-icon i { font-size: 22px; line-height: 1; }
.tt-logo-text-wrapper { display: flex; flex-direction: column; line-height: 1.2; }
.tt-logo-text { white-space: nowrap; }
.tt-logo-subtext { font-size: 13px; font-weight: 400; color: var(--hwk-grey-dark); }

.tt-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.tt-nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: transparent;
    color: var(--hwk-blue-dark);
    border: 1px solid transparent;
    font-size: 15px; font-weight: 500;
    text-decoration: none;
}
.tt-nav-link:hover { background-color: rgba(255,255,255,0.4); }
.tt-nav-link.active { background-color: white; color: var(--hwk-blue-dark); }
.tt-nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* 5. BUTTONS (HWK exakt - kein Border-Radius!) */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 16px; font-weight: 500;
    line-height: 1.5; text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background-color: var(--hwk-blue-light); border-color: var(--hwk-blue-light); color: white; }
.btn-primary:hover:not(:disabled) { background-color: var(--hwk-blue-dark); border-color: var(--hwk-blue-dark); }
.btn-secondary, .btn-default, .btn-outline {
    background-color: white; border-color: var(--hwk-blue-light-25); color: var(--hwk-grey-dark);
}
.btn-secondary:hover:not(:disabled), .btn-default:hover:not(:disabled), .btn-outline:hover:not(:disabled) {
    border-color: var(--hwk-blue-light); color: var(--hwk-blue-light);
}
.btn-success { background-color: var(--hwk-green-dark-75); border-color: var(--hwk-green-dark-75); color: white; }
.btn-success:hover:not(:disabled) { background-color: var(--hwk-green-dark); border-color: var(--hwk-green-dark); }
.btn-warning { background-color: var(--hwk-orange); border-color: var(--hwk-orange); color: white; }
.btn-warning:hover:not(:disabled) { background-color: var(--hwk-orange-75); border-color: var(--hwk-orange-75); }
.btn-danger  { background-color: var(--hwk-red-dark); border-color: var(--hwk-red-dark); color: white; }
.btn-danger:hover:not(:disabled)  { background-color: var(--hwk-red-dark-75); border-color: var(--hwk-red-dark-75); }
.btn-ghost   { background-color: transparent; border-color: transparent; color: var(--hwk-grey-dark); }
.btn-ghost:hover:not(:disabled) { background-color: var(--hwk-blue-light-25); color: var(--hwk-blue-dark); }
.btn-accent  { background-color: var(--hwk-orange); border-color: var(--hwk-orange); color: white; }
.btn-accent:hover:not(:disabled) { background-color: var(--hwk-blue-dark); border-color: var(--hwk-blue-dark); }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 18px; }
.btn-block { width: 100%; }

/* 6. HERO */
.tt-hero {
    background-color: var(--hwk-blue-dark);
    background-image: linear-gradient(135deg, var(--hwk-blue-dark) 0%, var(--hwk-blue-dark-75) 100%);
    padding: 64px 24px;
    color: white;
}
.tt-hero-content { max-width: 1100px; margin: 0 auto; }
.tt-hero h1 { color: white; font-size: 40px; margin-bottom: 14px; line-height: 1.15; }
.tt-hero h1 span:not([class]) { color: var(--hwk-yellow); font-size: 16px; font-weight: 600; }
.tt-hero p { color: rgba(255,255,255,0.92); font-size: 18px; max-width: 720px; margin: 0; padding-bottom: 24px; }

/* 7. PAGE LAYOUT */
.tt-page { padding: 32px 0 64px; background: var(--bg-body); min-height: 70vh; }
.tt-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tt-container-narrow { max-width: 800px; }

/* 8. SECTION + CARDS */
.tt-section { padding: 48px 0; }
.tt-section-title { font-size: 28px; color: var(--hwk-blue-dark); margin-bottom: 8px; }
.tt-section-subtitle { color: var(--hwk-grey-dark); margin-bottom: 24px; }
.tt-card, .tt-card-flat {
    background-color: white;
    box-shadow: var(--shadow-default);
    border-radius: 0;
    margin-bottom: 22px;
    padding: 22px;
}
.tt-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

/* 9. PROVIDER-CARD */
.tt-provider-card {
    background-color: white;
    box-shadow: var(--shadow-default);
    padding: 22px;
    text-decoration: none;
    color: var(--hwk-black);
    display: flex; flex-direction: column; gap: 14px;
    transition: box-shadow 0.2s;
    border-top: 4px solid var(--hwk-blue-light);
}
.tt-provider-card:hover { box-shadow: var(--shadow-hover); }
.tt-provider-card:active { box-shadow: var(--shadow-active); }
.tt-provider-logo {
    width: 48px; height: 48px;
    background-color: var(--hwk-blue-light-25);
    color: var(--hwk-blue-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 20px;
    overflow: hidden;
}
.tt-provider-logo img { width: 100%; height: 100%; object-fit: cover; }
.tt-provider-name { font-weight: 700; font-size: 18px; color: var(--hwk-blue-dark); }
.tt-provider-tagline { color: var(--hwk-grey-dark); font-size: 14px; line-height: 1.5; }
.tt-provider-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tt-provider-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    background: var(--hwk-blue-light-25);
    color: var(--hwk-blue-dark);
    font-size: 12px; font-weight: 600;
}

/* 10. STEPPER */
.tt-stepper {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 8px 0 28px;
    position: relative;
}
.tt-stepper::before {
    content: '';
    position: absolute; top: 18px; left: 8%; right: 8%;
    height: 2px;
    background: var(--hwk-blue-light-25);
    z-index: 0;
}
.tt-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tt-step-bubble {
    width: 36px; height: 36px;
    background: white;
    border: 2px solid var(--hwk-blue-light-25);
    color: var(--hwk-grey);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.tt-step-label { font-size: 14px; color: var(--hwk-grey-dark); }
.tt-step.is-active .tt-step-bubble { background: var(--hwk-blue-light); border-color: var(--hwk-blue-light); color: white; }
.tt-step.is-active .tt-step-label  { color: var(--hwk-blue-dark); font-weight: 600; }
.tt-step.is-done .tt-step-bubble   { background: var(--hwk-green-dark-75); border-color: var(--hwk-green-dark-75); color: white; }

/* 11. TERMINART */
.tt-terminart-list { display: grid; gap: 12px; }
.tt-terminart {
    display: flex; gap: 16px; align-items: center;
    padding: 18px 22px;
    background: white;
    box-shadow: var(--shadow-default);
    text-decoration: none;
    color: var(--hwk-black);
    border-left: 4px solid var(--hwk-blue-light);
    transition: box-shadow 0.2s;
}
.tt-terminart:hover { box-shadow: var(--shadow-hover); }
.tt-terminart-icon {
    width: 44px; height: 44px;
    background: var(--hwk-blue-light-25);
    color: var(--hwk-blue-dark);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tt-terminart-icon i { font-size: 22px; }
.tt-terminart-body { flex: 1; }
.tt-terminart-name { font-weight: 700; font-size: 18px; color: var(--hwk-blue-dark); }
.tt-terminart-desc { font-size: 14px; color: var(--hwk-grey-dark); margin-top: 4px; }
.tt-terminart-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--hwk-grey); }

/* 12. KALENDER */
.tt-calendar-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tt-calendar-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px; margin-bottom: 12px;
    border-bottom: 1px solid var(--hwk-blue-light-25);
}
.tt-calendar-title { font-weight: 700; font-size: 18px; color: var(--hwk-blue-dark); text-transform: capitalize; }
.tt-calendar-nav {
    width: 32px; height: 32px;
    border: 1px solid var(--hwk-blue-light-25);
    background: white;
    color: var(--hwk-blue-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.tt-calendar-nav:hover:not(:disabled) { background: var(--hwk-blue-light); border-color: var(--hwk-blue-light); color: white; }
.tt-calendar-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.tt-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tt-cal-dow {
    text-align: center; padding: 6px 0;
    font-size: 12px; font-weight: 700; color: var(--hwk-blue-dark);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.tt-cal-day {
    aspect-ratio: 1;
    background: var(--bg-body);
    border: 1px solid transparent;
    color: var(--hwk-black);
    font-size: 14px; font-weight: 500;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s;
    position: relative;
}
.tt-cal-day:hover:not(:disabled) { background: var(--hwk-blue-light-25); }
.tt-cal-day:disabled { background: transparent; color: var(--hwk-grey-light); cursor: not-allowed; }
.tt-cal-day.is-today { font-weight: 700; color: var(--hwk-blue-dark); border-color: var(--hwk-blue-light); }
.tt-cal-day.is-selected { background: var(--hwk-blue-dark); color: white; }
.tt-cal-day.has-slots::after {
    content: ''; position: absolute; bottom: 4px;
    width: 5px; height: 5px;
    background: var(--hwk-green-dark);
}

.tt-slots-head { font-weight: 700; font-size: 16px; color: var(--hwk-blue-dark); margin-bottom: 12px; }
.tt-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
.tt-slot {
    padding: 10px 8px;
    border: 1px solid var(--hwk-blue-light-25);
    background: white;
    color: var(--hwk-blue-dark);
    font-size: 15px; font-weight: 600;
    text-align: center;
    transition: all 0.15s;
}
.tt-slot:hover:not(:disabled) { background: var(--hwk-blue-light); border-color: var(--hwk-blue-light); color: white; }
.tt-slot.is-selected { background: var(--hwk-blue-dark); border-color: var(--hwk-blue-dark); color: white; }
.tt-slots-empty { color: var(--hwk-grey); font-size: 14px; padding: 16px 0; }

/* 13. FORM */
.tt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.tt-form-row-1 { grid-template-columns: 1fr; }
.tt-form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.tt-form-group { display: flex; flex-direction: column; gap: 6px; }
.tt-form-label { font-size: 14px; font-weight: 600; color: var(--hwk-grey-dark); }
.tt-form-label .req { color: var(--hwk-red-dark); }
.tt-form-control {
    padding: 10px 14px;
    border: 1px solid var(--hwk-blue-light-25);
    background: white;
    color: var(--hwk-black);
    font-size: 16px;
    font-family: inherit;
    border-radius: 0;
}
.tt-form-control:focus {
    outline: none;
    border-color: var(--hwk-blue-light);
    box-shadow: 0 0 0 2px var(--hwk-blue-light-25);
}
textarea.tt-form-control { min-height: 90px; resize: vertical; }
.tt-form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--hwk-grey-dark); }
.tt-form-check input { margin-top: 4px; accent-color: var(--hwk-blue-light); }

/* 14. ALERTS */
.tt-alert {
    padding: 14px 18px;
    border-left: 4px solid;
    background: white;
    box-shadow: var(--shadow-default);
    margin-bottom: 16px;
    font-size: 15px;
    display: flex; align-items: flex-start; gap: 10px;
}
.tt-alert i { font-size: 18px; line-height: 1.4; flex-shrink: 0; }
.tt-alert-success { border-color: var(--hwk-green-dark); color: var(--hwk-green-dark); }
.tt-alert-info    { border-color: var(--hwk-blue-light); color: var(--hwk-blue-dark); }
.tt-alert-warning { border-color: var(--hwk-orange); color: #8a4d10; }
.tt-alert-danger  { border-color: var(--hwk-red-dark); color: var(--hwk-red-dark); }

/* 15. BADGES */
.tt-badge, .tt-ms365-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.tt-ms365-badge.ok,   .tt-badge.ok    { background: #e7f4d9; color: var(--hwk-green-dark); }
.tt-ms365-badge.warn, .tt-badge.warn  { background: #fff1dc; color: #8a4d10; }
.tt-badge.info   { background: var(--hwk-blue-light-25); color: var(--hwk-blue-dark); }
.tt-badge.danger { background: #fbe1ea; color: var(--hwk-red-dark); }

/* Public main waechst, damit Footer am Boden klebt */
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }

/* 16. FOOTER */
.tt-footer {
    background: white;
    border-top: 1px solid var(--hwk-blue-light-25);
    padding: 24px;
    color: var(--hwk-grey-dark);
    font-size: 14px;
    margin-top: 48px;
}
.tt-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
}
.tt-footer a { color: var(--hwk-grey-dark); border-bottom: 1px dotted #444; }
.tt-footer a:hover { background-color: var(--hwk-blue-light-25); color: var(--hwk-blue-dark); }

/* 17. UTILS */
.tt-flex { display: flex; }
.tt-flex-between { display: flex; justify-content: space-between; align-items: center; }
.tt-gap-8 { gap: 8px; } .tt-gap-12 { gap: 12px; } .tt-gap-16 { gap: 16px; } .tt-gap-24 { gap: 24px; }
.tt-mt-8 { margin-top: 8px; } .tt-mt-16 { margin-top: 16px; } .tt-mt-24 { margin-top: 24px; }
.tt-mb-8 { margin-bottom: 8px; } .tt-mb-16 { margin-bottom: 16px; } .tt-mb-24 { margin-bottom: 24px; }
.tt-text-muted { color: var(--hwk-grey); }
.tt-text-center { text-align: center; }
.req { color: var(--hwk-red-dark); }

/* 18. RESPONSIVE */
@media (max-width: 820px) {
    .tt-header { padding: 8px 12px; }
    .tt-logo-text { font-size: 15px; }
    .tt-logo-subtext { display: none; }
    .tt-nav-link span { display: none; }
    .tt-hero { padding: 48px 16px; }
    .tt-hero h1 { font-size: 28px; }
    .tt-calendar-wrap { grid-template-columns: 1fr; }
    .tt-form-row, .tt-form-row-3 { grid-template-columns: 1fr; }
}
