/*
 * =====================================================
 * DATEISTRUKTUR: siehe config/config.php
 * Datei: assets/css/style.css
 * =====================================================
 */

/* ========== CSS Variables ========== */
:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #818cf8;
    --secondary-color: #764ba2;
    --accent-color: #10b981;
    --accent-dark: #059669;
    
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition: all 0.2s ease;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ========== Layout ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header & Navigation ========== */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    transition: var(--transition);
    border-radius: 4px;
}

.logo:hover .logo-img {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Falls Text-Logo verwendet wird */
.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    color: var(--text-medium);
    font-weight: 500;
}

.logo-highlight {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.08);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* ========== Hero Section ========== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* ========== Section Headers ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.view-all-link {
    color: var(--primary-color);
    font-weight: 500;
}

/* ========== Cards Grid ========== */
.quick-links {
    padding: 60px 0;
    background: var(--bg-white);
}

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

.card {
    background: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ========== News Section ========== */
.news-preview-section {
    padding: 60px 0;
    background: var(--bg-light);
}

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

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-card-image.placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.9;
}

.news-card-image.placeholder::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
}

.placeholder-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    filter: grayscale(1) brightness(10);
}

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.news-category.news { background: #dbeafe; color: #1e40af; }
.news-category.tipps { background: #fef3c7; color: #92400e; }
.news-category.tutorials { background: #d1fae5; color: #065f46; }
.news-category.markt { background: #e0e7ff; color: #3730a3; }
.news-category.tools { background: #fce7f3; color: #9d174d; }

.news-card-content h3 {
    margin: 12px 0;
    font-size: 1.1rem;
    line-height: 1.4;
    flex: 1;
}

.news-card-content h3 a {
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-content h3 a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-light);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* ========== News List Page ========== */
.news-section {
    padding: 40px 0 80px;
}

.news-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.news-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.category-list {
    list-style: none;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-medium);
    font-size: 0.95rem;
    transition: var(--transition);
}

.category-list li a:hover, .category-list li a.active {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.category-list .count {
    background: var(--bg-gray);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-widget h3 {
    color: white;
}

.cta-widget p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

/* News List Items */
.news-grid-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-list-item:hover {
    box-shadow: var(--shadow-md);
}

.news-list-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-gray);
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-list-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.3;
}

.news-list-content {
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
}

.news-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.news-list-content h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-list-content h2 a {
    color: var(--text-dark);
}

.news-list-content h2 a:hover {
    color: var(--primary-color);
}

.news-list-content > p {
    color: var(--text-medium);
    font-size: 0.95rem;
    flex: 1;
}

.news-list-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.read-more {
    margin-left: auto;
    color: var(--primary-color);
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    padding: 10px 16px;
    border-radius: var(--radius);
    background: white;
    color: var(--text-medium);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.page-link:hover, .page-link.active {
    background: var(--primary-color);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* ========== Article Page ========== */
.article-page {
    background: var(--bg-light);
}

.article-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0 40px;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.back-link {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.back-link:hover {
    color: white;
}

.article-category {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 800px;
}

.article-lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    display: block;
    font-weight: 600;
}

.article-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.article-stats {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.article-featured-image {
    margin-top: -30px;
    padding: 0 20px;
}

.article-featured-image img {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.article-layout {
    padding: 40px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.article-content {
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    min-width: 0;
}

.article-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.article-content p {
    margin-bottom: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-medium);
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content li::marker {
    color: var(--primary-color);
}

.article-content strong {
    color: var(--text-dark);
}

/* Intro Box */
.article-content .intro-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid var(--primary-color);
    padding: 24px 28px;
    margin-bottom: 2rem;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.article-content .intro-box p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-dark);
}

/* Code Blocks */
.article-content pre {
    background: var(--text-dark);
    color: #a8e6cf;
    padding: 20px 24px;
    border-radius: var(--radius);
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.article-content pre code {
    color: #a8e6cf;
    background: none;
    padding: 0;
    font-size: inherit;
}

.article-content code {
    background: var(--bg-gray);
    color: #e83e8c;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-content th {
    background: var(--primary-color);
    color: white;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
}

.article-content td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content tr:hover td {
    background: var(--bg-light);
}

/* Blockquotes */
.article-content blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px 24px;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-medium);
}

/* Images in Articles */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.article-content figure,
.article-content .article-figure {
    margin: 2rem 0;
    padding: 0;
}

.article-content figure img,
.article-content .article-figure img {
    margin: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.article-content figcaption,
.article-content .article-figure figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 12px;
    font-style: italic;
}

/* Full-width image option */
.article-content .full-width {
    margin-left: -48px;
    margin-right: -48px;
    width: calc(100% + 96px);
    max-width: calc(100% + 96px);
}

.article-content .full-width img {
    border-radius: 0;
    width: 100%;
}

/* Horizontal Rules */
.article-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 2.5rem 0;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.tag {
    background: var(--bg-gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* Share Sidebar */
.article-sidebar {
    position: relative;
}

.share-widget {
    background: white;
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.share-widget.sticky {
    position: sticky;
    top: 100px;
}

.share-widget h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 12px;
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.share-btn span:last-child {
    display: none;
}

@media (min-width: 1200px) {
    .share-btn span:last-child {
        display: inline;
    }
}

.share-btn:hover {
    transform: scale(1.05);
    color: white;
}

.share-btn.linkedin { background: #0077b5; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.email { background: var(--text-medium); }
.share-btn.copy { background: var(--bg-gray); color: var(--text-dark); }
.share-btn.copy:hover { color: var(--text-dark); }

.linkedin-post {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.linkedin-post p {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 10px;
}

/* Author Box */
.author-box-section {
    padding: 0 0 40px;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-info h4 {
    margin-bottom: 8px;
}

.author-box-info p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.author-box-links {
    display: flex;
    gap: 16px;
}

.author-box-links a {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Related Articles */
.related-articles {
    padding: 40px 0;
    background: white;
}

.related-articles h3 {
    text-align: center;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.related-card {
    display: block;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-card img {
    aspect-ratio: 16/10;
    object-fit: cover;
}

.related-placeholder {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    font-size: 2rem;
}

.related-info {
    padding: 16px;
}

.related-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.related-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Article CTA */
.article-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.article-cta .cta-box {
    text-align: center;
    color: white;
}

.article-cta h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.article-cta p {
    opacity: 0.9;
    margin-bottom: 24px;
}

/* ========== Tools Page ========== */
.tools-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0 80px;
    color: white;
    text-align: center;
}

.tools-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.tools-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.tools-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.tools-search input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
}

.tools-search .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

.tools-section {
    padding: 0 0 60px;
    margin-top: -40px;
}

.tools-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
}

.tools-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.tools-nav {
    background: white;
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow);
}

.tools-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-medium);
    font-weight: 500;
    transition: var(--transition);
}

.tools-nav-item:hover, .tools-nav-item.active {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.nav-icon {
    font-size: 1.25rem;
}

.tools-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tools-category {
    scroll-margin-top: 100px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.category-icon {
    font-size: 2rem;
    background: var(--bg-gray);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.category-header h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.category-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.tool-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.tool-card.external {
    text-decoration: none;
    color: inherit;
    position: relative;
}

.external-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tool-card-icon.blue { background: #dbeafe; }
.tool-card-icon.green { background: #d1fae5; }
.tool-card-icon.purple { background: #e0e7ff; }
.tool-card-icon.orange { background: #ffedd5; }
.tool-card-icon.red { background: #fee2e2; }

.tool-card-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.tool-card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Tool Box */
.tool-box {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.tool-box h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.tool-box.info-box {
    background: var(--bg-light);
}

.tool-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.flex-grow {
    flex: 1;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    font-size: 0.8rem;
    color: var(--text-light);
}

.tld-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.tool-result {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.result-header h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-range {
    font-size: 1rem;
    color: var(--text-medium);
    margin-top: 4px;
}

.result-hint {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.tool-hint {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.external-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.external-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.external-link:hover {
    background: var(--primary-color);
    color: white;
}

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

.roi-item {
    text-align: center;
}

.roi-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.roi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Verfügbarkeit Liste */
.verfuegbarkeit-liste {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.verfuegbarkeit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius);
}

.verfuegbarkeit-item.verfuegbar {
    background: #d1fae5;
}

.verfuegbarkeit-item.belegt {
    background: #fee2e2;
}

.domain-name {
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

.hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 12px;
}

/* ========== Tools Preview (Index) ========== */
.tools-preview {
    padding: 60px 0;
    background: var(--bg-light);
}

.tools-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.tool-preview-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.tool-preview-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.tool-preview-card .tool-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.tool-preview-card .tool-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.tool-preview-card .tool-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.tool-preview-card .tool-arrow {
    margin-left: auto;
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* ========== Buch Info ========== */
.buch-info {
    padding: 80px 0;
}

.buch-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.buch-cover img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.buch-details h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.buch-features {
    list-style: none;
    margin: 2rem 0;
}

.buch-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.buch-cta {
    margin-top: 2rem;
}

/* ========== Autor Section ========== */
.autor-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.autor-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 2rem;
}

.autor-image img {
    width: 100%;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.autor-text p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

/* ========== Newsletter ========== */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.newsletter-box {
    text-align: center;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-box h2 {
    margin-bottom: 1rem;
}

.newsletter-box p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

/* ========== Page Header ========== */
.page-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* ========== Footer ========== */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-copyright {
    margin-top: 16px;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.newsletter-mini p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.newsletter-form-mini {
    display: flex;
    gap: 8px;
}

.newsletter-form-mini input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    min-width: 0;
}

.newsletter-form-mini button {
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form-mini button:hover {
    background: var(--primary-dark);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .tools-layout, .news-layout {
        grid-template-columns: 1fr;
    }
    
    .tools-sidebar, .news-sidebar {
        position: static;
        order: -1;
    }
    
    .tools-nav {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 8px;
    }
    
    .tools-nav-item {
        white-space: nowrap;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        order: -1;
    }
    
    .share-widget.sticky {
        position: static;
    }
    
    .share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .share-btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
        max-width: 220px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 16px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .buch-content, .autor-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .buch-cover, .autor-image {
        text-align: center;
    }
    
    .buch-cover img {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .autor-image img {
        width: 150px;
        margin: 0 auto;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .page-header h1, .article-header h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .news-list-item {
        grid-template-columns: 1fr;
    }
    
    .news-list-image {
        aspect-ratio: 16/9;
    }
    
    .news-list-content {
        padding: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .roi-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 36px;
        max-width: 180px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .article-content {
        padding: 24px;
    }
}

/* ==================== TOOLS PAGE STYLES ==================== */

.tools-section {
    padding: 40px 0 80px;
}

/* Tool Navigation */
.tool-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.tool-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.tool-nav-item:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.tool-nav-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tool-nav-icon {
    font-size: 1.2rem;
}

/* Tool Cards - Interactive */
.tools-section .tool-card {
    display: block;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.tool-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.tool-title h2 {
    font-size: 1.75rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.tool-title p {
    color: var(--text-light);
    font-size: 1rem;
}

.tool-description {
    margin-bottom: 30px;
}

.tool-description p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.feature-tag {
    background: var(--bg-gray);
    color: var(--text-medium);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Tool Forms */
.tool-form {
    margin-bottom: 30px;
}

.tool-form .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.tool-form .form-row.checkboxes {
    flex-wrap: wrap;
    gap: 12px 24px;
}

.tool-form .form-group {
    flex: 1;
}

.tool-form .form-group.flex-grow {
    flex: 2;
}

.tool-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.tool-form input[type="text"],
.tool-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.tool-form input[type="text"]:focus,
.tool-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tool-form small {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Checkbox Labels */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-medium);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Tag Selector */
.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-selector .tag {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    user-select: none;
}

.tag-selector .tag:hover {
    border-color: var(--primary-light);
}

.tag-selector .tag.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Button Styles */
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-icon {
    margin-right: 8px;
}

/* Tool Results */
.tool-results {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.results-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.results-stats {
    display: flex;
    gap: 20px;
}

.results-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.results-stats .stat .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.results-stats .stat.available .dot {
    background: var(--success-color);
}

.results-stats .stat.taken .dot {
    background: var(--error-color);
}

/* Results Grid */
.results-grid {
    display: grid;
    gap: 12px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius);
    border-left: 4px solid var(--border-color);
}

.result-item.available {
    border-left-color: var(--success-color);
}

.result-item.taken {
    border-left-color: var(--error-color);
    opacity: 0.7;
}

.result-domain {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 600;
    flex-grow: 1;
}

.result-status {
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
}

.result-action {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.result-item.taken .result-action {
    background: var(--text-light);
}

.result-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: white;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Wert-Rechner Result */
.wert-result {
    text-align: center;
}

.wert-display {
    margin-bottom: 20px;
}

.wert-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.wert-betrag {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.wert-range {
    display: block;
    color: var(--text-medium);
    margin-top: 8px;
}

.wert-disclaimer {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 16px;
    background: white;
    border-radius: var(--radius);
}

/* External Tools Grid */
.externe-tools {
    margin-top: 60px;
}

.externe-tools h2 {
    text-align: center;
    margin-bottom: 30px;
}

.external-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.external-tool-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.external-tool-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.external-tool-card h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.external-tool-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Tools */
@media (max-width: 768px) {
    .tool-nav {
        justify-content: stretch;
    }
    
    .tool-nav-item {
        flex: 1;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .tools-section .tool-card {
        padding: 24px;
    }
    
    .tool-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tool-form .form-row {
        flex-direction: column;
    }
    
    .tool-form .form-row.checkboxes {
        flex-direction: row;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
    }
    
    .result-item {
        flex-wrap: wrap;
    }
    
    .result-domain {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .external-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tool-nav-item span:last-child {
        display: none;
    }
    
    .external-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== TOOLS OVERVIEW PAGE ==================== */

.tools-overview {
    padding: 40px 0 80px;
}

/* Filter Buttons */
.tools-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.filter-icon {
    font-size: 1.1rem;
}

.filter-count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.filter-btn.active .filter-count {
    background: rgba(255,255,255,0.2);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
}

.tool-card-new {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
}

.tool-card-new:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tool-card-new .tool-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-gray));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.tool-card-new .tool-card-content {
    flex-grow: 1;
}

.tool-card-new .tool-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.tool-card-new .tool-card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.tool-card-meta {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.tool-kategorie {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-gray);
    border-radius: 12px;
    color: var(--text-medium);
}

.tool-premium {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: #fef3c7;
    border-radius: 12px;
    color: #92400e;
}

.tool-card-arrow {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: var(--transition);
}

.tool-card-new:hover .tool-card-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-light);
}

/* ==================== SINGLE TOOL PAGE ==================== */

.tool-header-section {
    padding-bottom: 30px;
}

.tool-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.tool-breadcrumb a {
    color: white;
    text-decoration: none;
}

.tool-breadcrumb a:hover {
    text-decoration: underline;
}

.tool-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tool-header-icon {
    font-size: 3rem;
    background: rgba(255,255,255,0.2);
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tool Navigation Bar */
.tool-nav-bar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.tool-nav-scroll {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tool-nav-bar .tool-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-gray);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
    border: none;
}

.tool-nav-bar .tool-nav-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.tool-nav-bar .tool-nav-item.active {
    background: var(--primary-color);
    color: white;
}

/* Tool Content Section */
.tool-content-section {
    padding: 40px 0 80px;
}

.tool-description-box {
    background: var(--bg-gray);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.tool-description-box p {
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

.tool-module {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tool-card-inner {
    padding: 40px;
}

.tool-error {
    padding: 40px;
    text-align: center;
    color: var(--error-color);
}

.tool-footer {
    margin-top: 40px;
    text-align: center;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-progress {
    width: 200px;
    height: 8px;
    background: var(--bg-gray);
    border-radius: 4px;
    margin: 16px auto 0;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s;
    width: 0;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 8px;
}

.result-action.primary {
    background: var(--success-color);
}

.result-item.unknown {
    border-left-color: #f59e0b;
    opacity: 0.8;
}

/* Button Small */
.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Wert Breakdown */
.wert-breakdown {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.wert-breakdown h4 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.breakdown-grid {
    display: grid;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breakdown-label {
    width: 120px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.breakdown-bar {
    flex-grow: 1;
    height: 8px;
    background: var(--bg-gray);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.breakdown-value {
    width: 50px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive Single Tool */
@media (max-width: 768px) {
    .tool-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-card-inner {
        padding: 24px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .breakdown-label {
        width: 80px;
        font-size: 0.8rem;
    }
}

/* ==================== WHOIS TOOL STYLES ==================== */

/* Tabs */
.whois-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-gray);
    padding: 4px;
    border-radius: var(--radius-lg);
}

.whois-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whois-tab:hover {
    background: white;
    color: var(--text-dark);
}

.whois-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.whois-tab .tab-icon {
    font-size: 1.1rem;
}

/* Tab Descriptions */
.tab-descriptions {
    margin-bottom: 24px;
}

.tab-desc {
    display: none;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    color: var(--text-medium);
    font-size: 0.95rem;
    border-left: 4px solid var(--primary-color);
}

.tab-desc.active {
    display: block;
}

/* CAPTCHA Box */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #92400e;
}

.captcha-icon {
    font-size: 1.5rem;
}

.captcha-input {
    margin: 0 !important;
}

.captcha-input input {
    width: 80px !important;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px;
}

/* WHOIS Output */
.whois-output {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: var(--radius);
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 500px;
    overflow-y: auto;
}

.whois-output .highlight {
    color: #4fc1ff;
}

.whois-output .label {
    color: #9cdcfe;
}

.whois-output .value {
    color: #ce9178;
}

/* DNS Records */
.dns-records {
    background: white;
}

.dns-record-group {
    margin-bottom: 20px;
}

.dns-record-group h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dns-record-group h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.dns-record {
    padding: 12px 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-family: monospace;
    font-size: 0.9rem;
}

.dns-record .record-type {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 12px;
}

/* RDAP Output */
.rdap-output {
    background: white;
}

.rdap-section {
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.rdap-section h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rdap-section p {
    margin: 4px 0;
    color: var(--text-dark);
}

.rdap-section .status-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--success-color);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 2px;
}

.rdap-section .status-tag.inactive {
    background: var(--error-color);
}

/* Error Message in Results */
.error-message {
    padding: 20px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: var(--radius);
    text-align: center;
}

/* Responsive WHOIS */
@media (max-width: 768px) {
    .whois-tabs {
        flex-direction: column;
    }
    
    .captcha-box {
        flex-direction: column;
        text-align: center;
    }
    
    .captcha-input input {
        width: 100% !important;
    }
}