/* ========================================
   THINKPRINT Web-App Styles
   Zentrale CSS-Datei für alle Web-Apps
   ======================================== */

/* ========================================
   1. RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: auto;
    margin: 0;
    padding: 0;
}

/* ========================================
   2. TYPOGRAPHY
   ======================================== */
@font-face {
    font-family: 'Adobe Garamond Pro';
    src: url('https://tools.thinkprint.de/wp-content/uploads/agaramondpro-regular-webfont.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Adobe Garamond Pro';
    src: url('https://tools.thinkprint.de/wp-content/uploads/agaramondpro-italic-webfont.woff2') format('woff2'),
         url('https://tools.thinkprint.de/wp-content/uploads/agaramondpro-italic-webfont.woff') format('woff');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Adobe Garamond Pro';
    src: url('https://tools.thinkprint.de/wp-content/uploads/agaramondpro-semibolditalic-webfont.woff') format('woff');
    font-weight: 600;
    font-style: italic;
}

body,
.tp-app {
    font-family: 'Adobe Garamond Pro', Garamond, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.3;
    color: #000;
    background: #fff;
}

/* Labels in Versalien */
.tp-label,
.tp-button {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tp-heading-xl {
    font-size: 64px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1;
}

.tp-heading-lg {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tp-heading-md {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tp-heading-sm {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tp-text {
    font-size: 16px;
    line-height: 1.6;
}

.tp-text-sm {
    font-size: 14px;
    line-height: 1.5;
}

.tp-text-xs {
    font-size: 12px;
    line-height: 1.4;
}

.tp-subheadline {
    font-size: 24px;
    font-weight: 400;
    font-style: italic;
    line-height: 1;
}

/* ========================================
   3. LAYOUT
   ======================================== */
.tp-container {
    max-width: 1200px;
    margin: 0;
    padding: 0;
}

.tp-card {
    background: #fff;
    border: 1px solid #000;
    padding: 32px;
    margin: 0;
}

.tp-section {
    border: 1px solid #000;
    padding: 24px;
    margin-bottom: 20px;
}

.tp-header {
    margin-bottom: 24px;
}

.tp-content {
    padding: 0;
}

.tp-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .tp-grid-2,
    .tp-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   4. FORM ELEMENTS
   ======================================== */
.tp-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

.tp-input,
.tp-select {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Adobe Garamond Pro', Garamond, serif;
    font-size: 16px;
    color: #000;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.tp-input:focus,
.tp-select:focus {
    border-color: #000;
    border-width: 2px;
    padding: 11px 15px; /* Kompensiert die 2px border */
}

.tp-input::placeholder {
    color: #999;
}

/* Select mit Pfeil */
.tp-select-wrapper {
    position: relative;
}

.tp-select {
    padding-right: 40px;
}

.tp-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 10px;
}

/* ========================================
   5. BUTTONS
   ======================================== */
.tp-button {
    font-family: 'Adobe Garamond Pro', Garamond, serif;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 24px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.tp-button:hover {
    background: #000;
    color: #fff;
}

.tp-button:active {
    transform: translateY(1px);
}

.tp-button-group {
    display: flex;
    gap: 8px;
}

.tp-button-sm {
    padding: 8px 16px;
    font-size: 11px;
}

.tp-button-primary {
    background: #000;
    color: #fff;
}

.tp-button-primary:hover {
    background: #fff;
    color: #000;
}

/* ========================================
   6. RESULTS / OUTPUT
   ======================================== */
.tp-result {
    border: 1px solid #000;
    padding: 20px;
    background: #fff;
    text-align: center;
}

.tp-result-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #000;
}

.tp-result-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: #000;
}

.tp-result-info {
    border: 1px solid #000;
    padding: 16px;
    margin-top: 16px;
    background: #fff;
}

/* ========================================
   7. DIVIDER
   ======================================== */
.tp-divider {
    width: 100%;
    height: 1px;
    background: #000;
    margin: 24px 0;
}

.tp-divider-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.tp-divider-icon svg {
    width: 24px;
    height: 24px;
    stroke: #000;
}

/* ========================================
   8. INFO BOX
   ======================================== */
.tp-info {
    border: 1px solid #000;
    padding: 20px;
    margin-top: 24px;
}

.tp-info-compact {
    padding: 12px 0;
    margin-top: 16px;
}

.tp-info-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.tp-info-list {
    list-style: none;
    padding: 0;
}

.tp-info-list li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.tp-info-list-compact li {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.tp-info-list li::before {
    content: '—';
    position: absolute;
    left: 0;
}

/* ========================================
   9. UTILITIES
   ======================================== */
.tp-text-center {
    text-align: center;
}

.tp-text-right {
    text-align: right;
}

.tp-mt-1 { margin-top: 8px; }
.tp-mt-2 { margin-top: 16px; }
.tp-mt-3 { margin-top: 24px; }
.tp-mt-4 { margin-top: 32px; }

.tp-mb-1 { margin-bottom: 8px; }
.tp-mb-2 { margin-bottom: 16px; }
.tp-mb-3 { margin-bottom: 24px; }
.tp-mb-4 { margin-bottom: 32px; }

.tp-p-1 { padding: 8px; }
.tp-p-2 { padding: 16px; }
.tp-p-3 { padding: 24px; }
.tp-p-4 { padding: 32px; }

/* ========================================
   10. RESPONSIVE
   ======================================== */
@media (max-width: 400px) {
    .tp-grid-2,
    .tp-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .tp-card {
        padding: 20px;
    }
    
    .tp-section {
        padding: 16px;
    }
    
    .tp-heading-xl {
        font-size: 40px;
    }
    
    .tp-heading-lg {
        font-size: 20px;
    }
    
    .tp-result-value {
        font-size: 36px;
    }
}