/* ==========================================================================
   1. Variablen & Globale Resets
   ========================================================================== */
:root {
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --dark-blue: #0f172a;       /* Hauptfarbe für Titel & Buttons */
    --accent-blue: #0284c7;     /* Hover-Farbe */
    --text-dark: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --font-main: 'Segoe UI', Inter, -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ==========================================================================
   2. Portfolio Layout & Header
   ========================================================================== */
.portfolio-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-header h1 {
    font-size: 26pt;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.portfolio-header p {
    color: var(--text-muted);
    font-size: 11pt;
}

/* Modernes, flexibles CSS-Grid für die Karten */
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* ==========================================================================
   3. Design-Karten (Cards)
   ========================================================================== */
.design-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.design-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

/* --- Karten-Vorschau (Obere Hälfte) --- */
.card-preview {
    height: 160px;
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Die spezifischen Akzentfarben der Firmen-Layouts */
.orange-theme   { background: linear-gradient(135deg, #1e293b, #0f172a); border-bottom: 5px solid #e65f0f; }
.green-theme    { background: linear-gradient(135deg, #1e293b, #111827); border-bottom: 5px solid #10b981; }
.deepblue-theme { background: linear-gradient(135deg, #002f4b, #004b75); border-bottom: 5px solid #00a3a6; }
.itsc-theme     { background: linear-gradient(135deg, #0f172a, #1e293b); border-bottom: 5px solid #0284c7; }
.reiter-theme   { background: linear-gradient(135deg, #092540, #0f365c); border-bottom: 5px solid #035fa5; }

.preview-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 8pt;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-logo {
    color: #ffffff;
    font-weight: 800;
    font-size: 14pt;
    letter-spacing: 1px;
}

.preview-title {
    color: #ffffff;
    font-size: 12.5pt;
    font-weight: 700;
    line-height: 1.3;
}

/* --- Karten-Inhalt (Untere Hälfte) --- */
.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Hält alle Boxen und Buttons exakt auf gleicher Höhe */
}

.card-content h3 {
    font-size: 13.5pt;
    color: var(--dark-blue);
    margin-bottom: 12px;
    font-weight: 700;
}

.card-content p {
    color: var(--text-muted);
    font-size: 10pt;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Der Live-Ansehen-Button */
.view-button {
    display: block;
    text-align: center;
    background-color: var(--dark-blue);
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    font-size: 10pt;
    font-weight: 600;
    transition: var(--transition);
}

.view-button:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. Footer & Back-Link
   ========================================================================== */
.portfolio-back {
    text-align: center;
    margin-top: 40px;
}

.portfolio-back a {
    color: var(--text-muted);
    font-size: 10pt;
    font-weight: 600;
}

.portfolio-back a:hover {
    color: var(--dark-blue);
}