/* Dachneigung-Rechner WordPress Plugin Styles */

.dnr-container {
    max-width: 800px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dnr-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.dnr-title {
    font-size: 2.2em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.dnr-subtitle {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

.dnr-visual-helper {
    background: #f8f9fa;
    padding: 25px;
    margin: 25px;
    border-radius: 10px;
    text-align: center;
}

.dnr-visual-helper h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.dnr-roof-diagram {
    max-width: 400px;
    margin: 0 auto;
}

.dnr-roof-svg {
    width: 100%;
    height: 200px;
}

.dnr-diagram-note {
    color: #666;
    margin-top: 15px;
    font-size: 0.95em;
    line-height: 1.5;
}

.dnr-form {
    padding: 30px;
}

.dnr-input-group {
    margin-bottom: 25px;
}

.dnr-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.dnr-input-wrapper {
    position: relative;
}

.dnr-input-group input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.dnr-input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dnr-unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
    pointer-events: none;
}

.dnr-calculate-btn, .dnr-example-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.dnr-calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dnr-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.dnr-example-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.dnr-example-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #667eea;
}

.dnr-error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.dnr-results {
    display: none;
    background: #f8f9fa;
    margin: 30px;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.dnr-results.show {
    display: block;
    animation: dnr-slideIn 0.5s ease;
}

@keyframes dnr-slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dnr-results h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.dnr-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.dnr-result-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.dnr-result-label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.dnr-result-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #667eea;
}

.dnr-material-recommendations {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e8f4fd;
}

.dnr-material-recommendations h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.dnr-material-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dnr-material-item:last-child {
    border-bottom: none;
}

.dnr-material-status {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.dnr-material-status.suitable {
    background: #27ae60;
    color: white;
}

.dnr-material-status.not-suitable {
    background: #e74c3c;
    color: white;
}

.dnr-material-status.warning {
    background: #f39c12;
    color: white;
}

.dnr-material-name {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
}

.dnr-material-note {
    color: #666;
    font-size: 0.9em;
    margin-left: 15px;
}

.dnr-product-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.dnr-product-link {
    display: inline-block;
    padding: 12px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dnr-product-link:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.dnr-lead-capture {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 30px;
    margin: 30px;
    border-radius: 15px;
    text-align: center;
}

.dnr-lead-capture h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.dnr-lead-capture p {
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.6;
}

.dnr-lead-form {
    max-width: 500px;
    margin: 0 auto;
}

.dnr-lead-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.dnr-lead-form input,
.dnr-lead-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

.dnr-lead-form textarea {
    resize: vertical;
    min-height: 80px;
    margin-bottom: 15px;
}

.dnr-privacy {
    margin-bottom: 20px;
    text-align: left;
}

.dnr-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9em;
    line-height: 1.4;
}

.dnr-privacy input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.dnr-privacy a {
    color: white;
    text-decoration: underline;
}

.dnr-lead-btn {
    padding: 15px 30px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.dnr-lead-btn:hover {
    background: #34495e;
    transform: translateY(-2px);
}

.dnr-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.dnr-info-section {
    padding: 30px;
    background: #f8f9fa;
}

.dnr-info-section h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.4em;
    text-align: center;
}

.dnr-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dnr-info-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.dnr-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dnr-info-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.dnr-info-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dnr-container {
        margin: 15px;
        border-radius: 10px;
    }

    .dnr-header {
        padding: 20px;
    }

    .dnr-title {
        font-size: 1.8em;
    }

    .dnr-form,
    .dnr-results,
    .dnr-lead-capture,
    .dnr-info-section {
        padding: 20px;
        margin: 20px;
    }

    .dnr-result-grid {
        grid-template-columns: 1fr;
    }

    .dnr-lead-inputs {
        grid-template-columns: 1fr;
    }

    .dnr-product-links {
        flex-direction: column;
    }

    .dnr-material-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dnr-material-note {
        margin-left: 0;
    }
}

/* WordPress-spezifische Anpassungen */
.dnr-container * {
    box-sizing: border-box;
}

/* Überschreibung von Theme-Styles */
.dnr-container h1,
.dnr-container h2,
.dnr-container h3,
.dnr-container h4 {
    line-height: 1.3;
}

.dnr-container input,
.dnr-container button,
.dnr-container textarea {
    font-family: inherit;
}

/* Print-Styles */
@media print {
    .dnr-lead-capture,
    .dnr-example-btn {
        display: none;
    }
    
    .dnr-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

