﻿/* =========================================================
   LOCAL FONTS
   ========================================================= */
@font-face {
    font-family: 'Anta';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../Fonts/anta-v1-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Armata';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../Fonts/armata-v21-latin-regular.woff2') format('woff2');
}

/* =========================================================
   VARIABLES & GLOBAL RESET
   ========================================================= */
:root {
    --primary: #e94e1a; /* Vetra Orange */
    --secondary: #5e5d5d; /* Vetra Grey */
    --text-main: #575656;
    --font-headings: 'Anta', sans-serif;
    --font-body: 'Armata', sans-serif;
    --bootstrap-border-color: #CED4DA;
    --btn-transform: scale(1.02);
}

html, body {
    background-color: transparent;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: normal;
    line-height: 1.625;
    color: var(--text-main);
}

/* Global resets for Sharp-Edge Brand Identity */
.card, .form-control, .btn, .dropdown-menu, .popover, .popover-header,
.modal-content, .form-check-input, .input-group-text, .alert, .alert-info, .alert-danger, .btn-close:focus {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Typography */
h3 {
    font-size: 28px;
    line-height: 1.4;
}
h2 {
    font-size: 42px;
    line-height: 1.2;
}
h1, h2, h3, h4, .modal-title {
    font-family: var(--font-headings);
    color: var(--secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }

::selection {
    background-color: rgba(233, 78, 26, 0.3);
}

/* legacy Firefox */
::-moz-selection {
    background-color: rgba(233, 78, 26, 0.3);
}

/* =========================================================
   BUTTON HIERARCHY (The 4 Core Types)
   ========================================================= */

/* Shared Base Reset for all our custom buttons */
.btn-type-1, .btn-type-2, .btn-type-3, .btn-type-4 {
    font-family: var(--font-body) !important;  
    transition: all 0.2s ease-in-out !important;
    outline: none !important;
}
    .btn-type-1:active, .btn-type-2:active, .info-btn:active, help-btn:active {
        transform: var(--btn-transform) !important;
    }

/* ---------------------------------------------------------
   TYPE 1: Primary Action (e.g., "Suchen")
--------------------------------------------------------- */
.btn-type-1 {
    font-weight: bold !important;
    background-color: var(--primary) !important;
    color: white !important;
    border: 1px solid var(--primary) !important;
}

    .btn-type-1:hover {
        background-color: var(--secondary) !important;
        border-color: var(--secondary) !important;
        color: white !important;
    }


/* ---------------------------------------------------------
   TYPE 2: Secondary Action (e.g., "Jetzt wechseln")
--------------------------------------------------------- */
.btn-type-2 {
    background-color: var(--secondary) !important;
    color: white !important;
    border: 1px solid var(--secondary) !important;
}

    .btn-type-2:hover {
        background-color: var(--primary) !important;
        border-color: var(--primary) !important;
        color: white !important;
    }


/* ---------------------------------------------------------
   TYPE 3: Outline Action (e.g., Details, +/- incrementers)
--------------------------------------------------------- */
.btn-type-3 {
    background-color: transparent !important;
    color: var(--secondary) !important;
    border: 1px solid var(--secondary) !important;
}

    .btn-type-3:hover {
        background-color: var(--secondary) !important;
        color: white !important;
        border-color: var(--secondary) !important;
    }

    .btn-type-3[aria-describedby] {
        background-color: var(--secondary) !important;
        color: white !important;
        border-color: var(--secondary) !important;
    }

/* ---------------------------------------------------------
   TYPE 4 and help-btn: Help/Info Buttons (e.g., the "?" popover buttons)
--------------------------------------------------------- */
.btn-type-4 {
    background-color: transparent !important;
    color: var(--secondary) !important;
    border: 1px solid var(--bootstrap-border-color);
}
    .btn-type-4:hover {
        background-color: var(--secondary) !important;
        border-color: var(--secondary) !important;
        color: white !important;
    }

    .btn-type-4[aria-describedby] {
        background-color: var(--primary) !important;
        border-color: var(--primary) !important;
        color: white !important;
    }

/* =========================================================
   ALERTS (Info & Error States)
   ========================================================= */
.alert {
    border: 1px solid var(--bootstrap-border-color);
    font-family: var(--font-body);
}

.alert-info {
    background-color: #f8f9fa;
    color: var(--text-main);
}

.alert-danger {
    background-color: rgba(233, 78, 26, 0.05);
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* =========================================================
   POPOVERS
   ========================================================= */
.popover {
    padding: 0;
    border: 1px solid var(--bootstrap-border-color);
}

.popover-header {
    background-color: var(--secondary);
    color: white;
    font-family: var(--font-headings);
    border-bottom: none;
}

.popover-body {
    font-size: 0.875rem;
    color: #6c757d;
}

.popover-body-inner {
    line-height: 1.5;
}

