/*
Theme Name: Suche.lu
Description: Die lokale Suche für Luxemburg.
Version: 1.0
Text Domain: suche-lu
*/

:root {
    --ink:#172f2a;
    --deep:#155944;
    --green:#237454;
    --soft:#edf4ed;
    --line:#d3ded5;
    --muted:#4e625a;
    --paper:#fcfdf9;
    --coral:#c95447;
    --font:"Inter","Segoe UI",Arial,sans-serif;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    color:var(--ink);
    background:var(--paper);
    font:1rem/1.55 var(--font);
    -webkit-font-smoothing:antialiased;
}

a {
    color:var(--deep);
    text-underline-offset:.2em;
}

button,input,select,textarea {
    font:inherit;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
    outline:3px solid #ae5334;
    outline-offset:3px;
}

h1,h2,h3,p {
    margin:0;
}

h1,h2,h3 {
    line-height:1.12;
    letter-spacing:-.045em;
}

button {
    cursor:pointer;
}

.wrap {
    width:min(1200px,calc(100% - clamp(40px,9vw,144px)));
    margin:auto;
}

.mast {
    background:#fcfdf9;
    border-bottom:1px solid var(--line);
}

.mast-inner {
    display:flex;
    gap:32px;
    align-items:center;
    min-height:78px;
}

.brand {
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:var(--ink);
    text-decoration:none;
    line-height:1;
}

.wordmark {
    font-weight:750;
    letter-spacing:-.066em;
    font-size:2rem;
}

.wordmark span {
    color:var(--deep);
}

.brand-symbol {
    position:relative;
    width:31px;
    height:31px;
    display:grid;
    grid-template:1fr 1fr / 1fr 1fr;
    gap:2px;
    transform:rotate(-6deg);
}

.brand-symbol i {
    background:var(--deep);
    border-radius:100% 12% 12% 12%;
}

.brand-symbol i:nth-child(2) {
    transform:rotate(90deg);
    background:#d86958;
}

.brand-symbol i:nth-child(3) {
    transform:rotate(-90deg);
}

.brand-symbol i:nth-child(4) {
    transform:rotate(180deg);
}

.mast nav {
    margin-left:auto;
    display:flex;
    gap:30px;
    height:78px;
    align-items:center;
}

.mast nav a {
    height:100%;
    display:flex;
    align-items:center;
    position:relative;
    color:var(--muted);
    font-weight:600;
    font-size:.94rem;
    text-decoration:none;
}

.mast nav a[aria-current],.mast nav a:hover {
    color:var(--deep);
}

.mast nav a[aria-current]:after {
    position:absolute;
    content:"";
    height:3px;
    border-radius:3px 3px 0 0;
    background:var(--green);
    bottom:0;
    left:0;
    right:0;
}

.lang {
    display:flex;
    align-items:center;
    gap:2px;
    border:1px solid #cfdbd2;
    border-radius:22px;
    padding:3px;
}

.lang a {
    border-radius:17px;
    padding:4px 9px;
    text-decoration:none;
    color:var(--muted);
    font-size:.81rem;
    font-weight:650;
}

.lang a[aria-current] {
    color:#fff;
    background:var(--deep);
}

.hero {
    background:#eef4eb;
    border-bottom:1px solid var(--line);
    overflow:hidden;
}

.hero-grid {
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
    align-items:center;
    gap:12px;
    min-height:465px;
}

.hero-content {
    padding:49px 0 46px;
    z-index:1;
}

.hero h1 {
    font-size:clamp(3.1rem,5.1vw,4.65rem);
    line-height:1.02;
    letter-spacing:-.066em;
    font-weight:650;
}

.hero h1 em {
    color:var(--deep);
    font-style:normal;
}

.lead {
    font-size:clamp(1.06rem,1.45vw,1.18rem);
    line-height:1.55;
    max-width:510px;
    color:var(--muted);
    margin:19px 0 27px;
}

.atlas {
    position:relative;
    height:100%;
    min-height:410px;
    align-self:stretch;
}

.atlas canvas {
    display:block;
    width:118%;
    height:100%;
    margin-left:-5%;
    pointer-events:none;
}

.search-bar {
    padding:6px 6px 6px 19px;
    background:white;
    border:1px solid #a7bbae;
    box-shadow:0 4px 12px #143c2410;
    display:flex;
    align-items:center;
    gap:13px;
    border-radius:10px;
}

.search-bar:focus-within {
    border-color:var(--deep);
    box-shadow:0 0 0 2px #15594425;
}

.search-bar input {
    border:0;
    outline:0;
    width:100%;
    min-width:0;
    background:transparent;
    font-size:1.06rem;
    color:var(--ink);
    height:42px;
    padding:0;
}

.search-bar input:focus-visible {
    outline:0;
}

.search-bar input::placeholder {
    color:#64746c;
}

.search-bar button,.feedback button {
    background:var(--deep);
    border:0;
    border-radius:7px;
    color:#fff;
    padding:12px 23px;
    line-height:1.3;
    font-weight:650;
}

.search-bar button:hover,.feedback button:hover {
    background:#0a4632;
}

.glass {
    border:2px solid #496453;
    border-radius:100%;
    height:17px;
    width:17px;
    position:relative;
    flex:0 0 17px;
}

.glass:after {
    content:"";
    position:absolute;
    bottom:-4px;
    right:-5px;
    background:#496453;
    width:7px;
    height:2px;
    transform:rotate(45deg);
}

.examples {
    display:flex;
    gap:6px 16px;
    flex-wrap:wrap;
    align-items:center;
    font-size:.87rem;
    margin-top:13px;
}

.examples span {
    color:var(--muted);
}

.examples a {
    font-weight:580;
    color:var(--deep);
}

.topic-section {
    padding:39px 0 48px;
}

.topic-section h2,.inside h2 {
    font-size:clamp(1.55rem,2.45vw,2.15rem);
    font-weight:650;
}

.cards {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:15px;
    margin-top:20px;
}

.card {
    display:block;
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    padding:22px;
    text-decoration:none;
    color:var(--ink);
    transition:border-color .15s,box-shadow .15s;
}

.card:hover,.card:focus-visible {
    border-color:#68927d;
    box-shadow:0 5px 13px #163b2b0d;
}

.card h3 {
    font-size:clamp(1.12rem,1.6vw,1.42rem);
    margin:15px 0 6px;
}

.card p {
    color:var(--muted);
    font-size:.94rem;
    line-height:1.45;
}

.icon-bg {
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    background:#dfede2;
    border-radius:10px;
    color:#36644d;
}

.card-work .icon-bg {
    background:#f6e6dc;
    color:#9c4b36;
}

.card-mobility .icon-bg {
    background:#e2edf2;
    color:#3e687b;
}

.glyph {
    width:23px;
    height:21px;
    display:block;
    position:relative;
}

.glyph:after,.glyph:before,.glyph i,.glyph b {
    content:"";
    position:absolute;
    display:block;
}

.glyph-admin:before {
    width:16px;
    height:16px;
    transform:rotate(45deg) skew(-12deg,-12deg);
    border:2px solid currentColor;
    left:2px;
    top:2px;
    clip-path:polygon(0 0,100% 0,0 100%);
}

.glyph-admin i {
    left:3px;
    right:3px;
    height:8px;
    top:9px;
    border-left:2px solid;
    border-right:2px solid;
}

.glyph-admin b {
    height:8px;
    top:9px;
    left:10px;
    border-left:2px solid;
}

.glyph-admin:after {
    bottom:1px;
    left:1px;
    right:1px;
    border-bottom:2px solid;
}

.glyph-work:before {
    inset:5px 1px 1px;
    border:2px solid;
    border-radius:3px;
}

.glyph-work i {
    inset:1px 7px auto;
    height:6px;
    border:2px solid;
    border-bottom:0;
    border-radius:3px 3px 0 0;
}

.glyph-work:after {
    inset:10px 2px auto;
    border-bottom:2px solid;
}

.glyph-work b {
    background:currentColor;
    width:3px;
    height:4px;
    top:10px;
    left:10px;
}

.glyph-mobility:before {
    inset:0 3px 4px;
    border:2px solid;
    border-radius:5px;
}

.glyph-mobility i {
    left:6px;
    right:6px;
    top:7px;
    border-bottom:2px solid;
}

.glyph-mobility:after {
    left:6px;
    right:6px;
    bottom:0;
    height:4px;
    border-left:2px solid;
    border-right:2px solid;
    transform:perspective(5px) rotateX(16deg);
}

.glyph-mobility b {
    top:11px;
    left:7px;
    width:2px;
    height:2px;
    box-shadow:6px 0 currentColor;
    background:currentColor;
}

footer {
    border-top:1px solid var(--line);
    color:var(--muted);
    background:#f4f7f1;
}

.footer-inner {
    display:flex;
    align-items:center;
    gap:22px;
    min-height:83px;
}

.footer-brand .wordmark {
    font-size:1.35rem;
}

.footer-brand .brand-symbol {
    width:21px;
    height:21px;
    gap:1px;
}

.footer-text,.footer-links {
    font-size:.875rem;
}

.footer-links {
    display:flex;
    flex-wrap:wrap;
    gap:6px 16px;
    margin-left:auto;
}

.inside {
    min-height:66vh;
    padding-top:48px;
    padding-bottom:60px;
}

.inside>h1 {
    font-size:clamp(2.35rem,4.8vw,3.8rem);
    margin:0 0 24px;
}

.inside .search-form,.results,.summary,.empty,.inside .intro,.feedback,.prose>* {
    max-width:870px;
}

.inside .intro {
    font-size:1.16rem;
    color:var(--muted);
    line-height:1.65;
}

.filters {
    display:flex;
    gap:15px;
    align-items:end;
    flex-wrap:wrap;
    padding:16px 0 19px;
}

.filters label,.feedback label {
    display:grid;
    gap:4px;
    font-size:.9rem;
    font-weight:600;
}

.filters .check {
    display:flex;
    gap:7px;
    align-items:center;
    min-height:39px;
    font-weight:500;
}

.check input {
    width:17px;
    height:17px;
    accent-color:var(--deep);
}

select,.feedback input,.feedback textarea {
    border:1px solid #aebfb4;
    border-radius:6px;
    background:white;
    color:var(--ink);
    padding:8px 12px;
}

.summary {
    border-bottom:1px solid var(--line);
    padding:15px 0;
    color:var(--muted);
    font-size:.93rem;
}

.results {
    padding:0;
    list-style:none;
    margin:0;
}

.results li {
    padding:21px 0;
    border-bottom:1px solid var(--line);
}

.record-meta {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    color:var(--muted);
    font-size:.91rem;
}

.dot {
    height:3px;
    width:3px;
    border-radius:50%;
    background:currentColor;
}

.source-label {
    background:#e6efe7;
    color:#315e42;
    padding:2px 7px;
    border-radius:4px;
    font-size:.78rem;
}

.results h2 {
    margin:6px 0;
    font-size:1.32rem;
    letter-spacing:-.025em;
    line-height:1.35;
}

.results h2 a {
    text-decoration:none;
}

.results h2 a:hover {
    text-decoration:underline;
}

.record-detail {
    color:var(--muted);
    font-size:.89rem;
}

.empty,.notice {
    padding:22px;
    background:var(--soft);
    border-radius:9px;
    margin-top:16px;
}

.empty p,.prose p {
    margin:12px 0 18px;
}

.prose h2 {
    margin-top:30px;
}

.feedback {
    display:grid;
    gap:15px;
}

.feedback button {
    justify-self:start;
}

.sr,.skip:not(:focus) {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
}

.skip:focus {
    position:absolute;
    z-index:10;
    background:white;
    padding:8px;
}

@media(min-width:1450px) {
    .hero-grid {
        min-height:490px;
    }
}

@media(max-width:850px) {
    .hero-grid {
        grid-template-columns:1.45fr 1fr;
        gap:0;
        min-height:420px;
    }
    .hero h1 {
        font-size:clamp(2.75rem,5.8vw,3.8rem);
    }
    .atlas canvas {
        width:145%;
        margin-left:-15%;
    }
    .card {
        padding:17px;
    }
    .cards {
        gap:10px;
    }
    .mast nav {
        gap:19px;
    }
    .footer-inner {
        gap:14px;
    }
}

@media(max-width:680px) {
    .wrap {
        width:calc(100% - 36px);
    }
    .mast-inner {
        min-height:65px;
        gap:12px;
        flex-wrap:wrap;
        padding-top:14px;
    }
    .mast nav {
        order:3;
        width:100%;
        height:38px;
        gap:23px;
        margin:0;
    }
    .mast nav a {
        font-size:.91rem;
    }
    .lang {
        margin-left:auto;
    }
    .wordmark {
        font-size:1.65rem;
    }
    .brand-symbol {
        width:26px;
        height:26px;
    }
    .hero-grid {
        display:block;
        min-height:0;
    }
    .hero-content {
        position:relative;
        padding:33px 0 32px;
    }
    .hero h1 {
        font-size:clamp(2.75rem,9.8vw,3.6rem);
        position:relative;
    }
    .lead {
        font-size:1rem;
        max-width:35em;
        margin:15px 0 21px;
    }
    .atlas {
        display:none;
    }
    .search-bar {
        padding:5px 5px 5px 13px;
        gap:10px;
    }
    .search-bar input {
        font-size:1rem;
    }
    .search-bar button {
        padding:11px 13px;
    }
    .examples {
        gap:4px 12px;
    }
    .cards {
        grid-template-columns:1fr;
    }
    .card {
        padding:15px 16px 15px 75px;
        min-height:77px;
        position:relative;
    }
    .card h3 {
        margin:2px 0 4px;
    }
    .card .icon-bg {
        position:absolute;
        left:16px;
        top:16px;
    }
    .topic-section {
        padding:28px 0 32px;
    }
    .footer-inner {
        flex-wrap:wrap;
        padding:20px 0;
        gap:9px 16px;
    }
    .footer-text {
        width:100%;
        order:3;
    }
    .footer-links {
        width:100%;
        margin:0;
        order:4;
    }
    .inside {
        padding-top:32px;
    }
    .filters {
        gap:10px;
    }
    .filters label {
        flex:1;
        min-width:120px;
    }
    .filters select {
        width:100%;
    }
    .filters .check {
        flex-basis:100%;
    }
    .record-meta {
        gap:6px;
    }
}
