/* ChangingGraph - Global Styles */

/* Development Banner */
.dev-banner {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
}

.dev-banner strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.dev-banner span {
    opacity: 0.9;
}

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

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Header */
header {
    background: #fff;
    color: #333;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #3dba54;
    position: sticky;
    top: 0;
    z-index: 100;
}

header a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

header a:hover {
    color: #3dba54;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.header-logo img {
    height: 40px;
    width: auto;
}

/* Navigation */
nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

nav a:hover {
    color: #3dba54;
    text-decoration: none;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.hero img {
    max-width: 300px;
    border-radius: 50%;
    margin-bottom: 2rem;
}

.hero-logo {
    max-width: 250px;
    border-radius: 0;
}

/* Hero Split Layout */
.hero-split {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.hero-split .hero-text {
    flex: 1;
}

.hero-split .hero-image {
    flex: 0 0 auto;
}

.hero-split .hero-image img {
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero-split {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-split .hero-image img {
        max-width: 200px;
    }
}

/* Page Hero Split (für Unterseiten) */
.page-hero-split {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.page-hero-split .page-hero-text {
    flex: 1;
}

.page-hero-split .page-hero-text h1 {
    margin-bottom: 1rem;
}

.page-hero-split .page-hero-text .lead {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 0;
}

.page-hero-split .page-hero-image {
    flex: 0 0 auto;
}

.page-hero-split .page-hero-image img {
    max-width: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .page-hero-split {
        flex-direction: column-reverse;
        text-align: center;
    }

    .page-hero-split .page-hero-image img {
        max-width: 150px;
    }
}

.hero h1 {
    font-size: 2.5rem;
    color: #3dba54;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero .intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.8;
}

.hero .intro-note {
    font-style: italic;
    color: #666;
    font-size: 1rem;
}

.hero .intro a {
    color: #209dd2;
    font-weight: 600;
}

/* Project Badge */
.project-of {
    font-size: 1.1rem;
    margin: 2rem 0;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    display: inline-block;
}

.project-of a {
    color: #209dd2;
    font-weight: 600;
    text-decoration: none;
}

.project-of a:hover {
    text-decoration: underline;
}

/* CTA Buttons */
.ctas {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #3dba54;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #2d9a42;
}

.cta .cta-button {
    color: white;
}

.cta-button.secondary {
    background: white;
    color: #209dd2;
    border: 2px solid #209dd2;
}

.cta-button.secondary:hover {
    background: #e8f6fc;
}

/* Cards */
.cards {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #209dd2;
}

.card h3 {
    color: #3dba54;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.card a {
    color: #209dd2;
    text-decoration: none;
    font-weight: 600;
}

.card a:hover {
    text-decoration: underline;
}

/* Content Sections */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content h1 {
    font-size: 2.5rem;
    color: #3dba54;
    margin-bottom: 2rem;
    text-align: center;
}

.content h2 {
    font-size: 1.8rem;
    color: #3dba54;
    margin: 3rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.content h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 2rem 0 0.5rem;
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content a {
    color: #209dd2;
}

.content a:hover {
    text-decoration: none;
}

.content ul,
.content ol {
    margin: 1rem 0 1.5rem 2rem;
}

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

.content code {
    background: #f4f4f4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.95rem;
}

.content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Highlight Box */
.highlight-box,
.highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
    border-left: 4px solid #3dba54;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p,
.highlight p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.highlight {
    background: #f5f5f5;
    border-left-color: #209dd2;
}

.highlight p {
    margin-bottom: 1rem;
}

.highlight p:last-child {
    margin-bottom: 0;
}

/* Example Box */
.example-box {
    background: #fff;
    border: 2px solid #209dd2;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.example-box h3 {
    color: #209dd2;
    margin-top: 0;
}

/* Intro Section */
.intro-section {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 3rem;
    border-radius: 8px;
}

.cta-section h2 {
    border: none;
    margin-top: 0;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Vision Principles */
.vision-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.principle {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid #3dba54;
}

.principle h3 {
    margin-top: 0;
    color: #3dba54;
}

/* Graph Visualization */
.graph-visual {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.simple-graph {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.node {
    background: #3dba54;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(61, 186, 84, 0.3);
}

.edge {
    color: #209dd2;
    font-size: 1.5rem;
}

.graph-caption {
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

/* Linked Data Visualization */
.linked-data-visual {
    background: linear-gradient(135deg, #f0f9f1 0%, #e8f4fc 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.data-connections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.data-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.subject,
.object {
    background: #3dba54;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.predicate {
    color: #209dd2;
    font-weight: 600;
    padding: 0.5rem;
}

/* API Reference */
.api-reference {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.api-reference h3 {
    margin-top: 0;
}

/* Scenario Box */
.scenario {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #3dba54;
}

/* CTA Box (Vision page) */
.cta {
    background: #f5f5f5;
    color: #333;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3dba54;
    margin: 3rem 0;
    text-align: center;
}

.cta p {
    margin-bottom: 1.5rem;
}

.cta strong {
    color: #3dba54;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th,
td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #3dba54;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f9f9f9;
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 2px solid #f5f5f5;
    margin: 3rem 0;
}

/* Footer */
footer {
    background: #2e5fab;
    color: white;
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
}

footer a:hover {
    text-decoration: underline;
}

footer nav {
    justify-content: center;
    margin-bottom: 1rem;
}

footer .domain {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero img {
        max-width: 200px;
    }

    nav {
        gap: 1rem;
    }

    .content h1 {
        font-size: 2rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .simple-graph {
        flex-direction: column;
    }

    .edge {
        transform: rotate(90deg);
    }
}
